From 58c9f9ec3e89c4e1a7f3c8e3fd8139a25a8fe64a Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 4 Jul 2022 12:00:04 +0300 Subject: [PATCH] Update TimeSpeller.php --- src/Russian/TimeSpeller.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Russian/TimeSpeller.php b/src/Russian/TimeSpeller.php index 0a9f531..2296fda 100644 --- a/src/Russian/TimeSpeller.php +++ b/src/Russian/TimeSpeller.php @@ -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]); }