Skip to content

Commit

Permalink
Merge pull request #35 from akashrchandran/develop
Browse files Browse the repository at this point in the history
Fixed Implicit error
  • Loading branch information
akashrchandran authored Jan 18, 2024
2 parents f553cbd + 485f235 commit ef2128b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Spotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ function getLrcLyrics($lyrics): array
* @return string The time in [mm:ss.xx] format.
*/
function formatMS($milliseconds): string
{
$lrc_timetag = sprintf('%02d:%02d.%02d', intval(($milliseconds / 1000) / 60), intval(($milliseconds / 1000) % 60), intval(($milliseconds % 1000) / 10));
{
$th_secs = intdiv($milliseconds, 1000);
$lrc_timetag = sprintf('%02d:%02d.%02d', intdiv($th_secs , 60), $th_secs % 60, intdiv(($milliseconds % 1000), 10));
return $lrc_timetag;
}
}

0 comments on commit ef2128b

Please sign in to comment.