refactoring for dependency injection and testability.
This commit is contained in:
@@ -149,7 +149,9 @@ class Inflector {
|
||||
*/
|
||||
public static function plural($value)
|
||||
{
|
||||
return static::$plural_cache[$value] = static::inflect($value, static::$plural_cache, array_flip(static::$irregular), static::$plural);
|
||||
$irregular = array_flip(static::$irregular);
|
||||
|
||||
return static::$plural_cache[$value] = static::inflect($value, static::$plural_cache, $irregular, static::$plural);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user