Commit 8a94c978 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #147 from sparksp/develop/fix_inflector

Inflector updates
parents 968e80bc 5da8c1e1
......@@ -102,13 +102,15 @@ class Inflector {
* @var array
*/
private static $uncountable = array(
'audio',
'equipment',
'data',
'deer',
'fish',
'gold',
'information',
'money',
'rice',
'police',
'series',
'sheep',
'species',
......@@ -138,7 +140,7 @@ class Inflector {
*/
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);
......@@ -200,4 +202,4 @@ class Inflector {
return $value;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment