Fixed plural count check
This commit is contained in:
parent
75ba2447f8
commit
e84fb806f8
|
@ -138,7 +138,7 @@ class Inflector {
|
||||||
*/
|
*/
|
||||||
public static function plural($value, $count = null)
|
public static function plural($value, $count = null)
|
||||||
{
|
{
|
||||||
if ( ! is_null($count) and $count <= 1) return $value;
|
if ( ! is_null($count) and $count == 1) return $value;
|
||||||
|
|
||||||
$irregular = array_flip(static::$irregular);
|
$irregular = array_flip(static::$irregular);
|
||||||
|
|
||||||
|
@ -200,4 +200,4 @@ private static function inflect($value, $cache, $irregular, $source)
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue