Fixed plural count check
This commit is contained in:
@@ -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 @@ class Inflector {
|
|||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user