Skip to content

Commit

Permalink
Update FormatSeconds.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mooxbot committed Jun 7, 2024
1 parent 87ddb3e commit a625f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/FormatSeconds.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ trait FormatSeconds
{
public function formatSeconds(int $seconds): string
{

$days = 0;
$hours = 0;
$minutes = 0;

if ($seconds > 60) {
$days = floor($seconds / (60 * 60 * 24));
$seconds -= $days * (60 * 60 * 24);
Expand Down

0 comments on commit a625f80

Please sign in to comment.