Merge pull request #147 from sparksp/develop/fix_inflector

Inflector updates
This commit is contained in:
Taylor Otwell 2011-11-10 05:21:33 -08:00
commit 8a94c9787a
1 changed files with 5 additions and 3 deletions

View File

@ -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);