Skip to content

Commit

Permalink
Update ReadableTimeLength
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny authored May 9, 2021
1 parent 78b3a13 commit 42bc9ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ function ReadableDiffDateTime($old, $new = null, string $timezone = null): ?stri
*
* @param int $input
* @param string $comma
* @param boolean $short
* @return string
**/
function ReadableTimeLength(int $input, string $comma = ' '): ?string
function ReadableTimeLength(int $input, string $comma = ' ', bool $short = false): ?string
{
return Readable::getTimeLength($input, $comma);
return Readable::getTimeLength($input, $comma, $short);
}

/**
Expand Down

0 comments on commit 42bc9ec

Please sign in to comment.