Skip to content

Commit

Permalink
Update TimeSpeller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan authored Jul 4, 2022
1 parent 5a79954 commit 58c9f9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Russian/TimeSpeller.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public static function spellUnit($count, $unit)
throw new InvalidArgumentException('Unknown time unit: '.$unit);
}

if ($count === 1 && in_array($unit, [self::SECOND, self::MINUTE], true)) {
if ($unit === self::SECOND)
return '1 секунду';
return '1 минуту';
}
// if ($count === 1 && in_array($unit, [self::SECOND, self::MINUTE], true)) {
// if ($unit === self::SECOND)
// return '1 секунду';
// return '1 минуту';
// }

return pluralize($count, static::$units[$unit]);
}
Expand Down

0 comments on commit 58c9f9e

Please sign in to comment.