@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | public static function reportUnknownTableField($unExpectedFields, $message) |
| 16 | 16 | { |
| 17 | - $fields = implode(", ",$unExpectedFields); |
|
| 17 | + $fields = implode(", ", $unExpectedFields); |
|
| 18 | 18 | |
| 19 | 19 | //var_dump($fields); |
| 20 | 20 | |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | |
| 13 | 13 | class NoRecordDeletionException extends Exception |
| 14 | 14 | { |
| 15 | - public static function checkNoRecordDeleteException($message) |
|
| 16 | - { |
|
| 17 | - return new static($message); |
|
| 18 | - } |
|
| 15 | + public static function checkNoRecordDeleteException($message) |
|
| 16 | + { |
|
| 17 | + return new static($message); |
|
| 18 | + } |
|
| 19 | 19 | } |
@@ -74,14 +74,14 @@ |
||
| 74 | 74 | 'sex' => 'sexes', |
| 75 | 75 | 'move' => 'moves'); |
| 76 | 76 | $lowercased_word = strtolower($word); |
| 77 | - foreach ($uncountable as $_uncountable){ |
|
| 78 | - if(substr($lowercased_word,(-1*strlen($_uncountable))) == $_uncountable){ |
|
| 77 | + foreach ($uncountable as $_uncountable) { |
|
| 78 | + if (substr($lowercased_word, (-1*strlen($_uncountable))) == $_uncountable) { |
|
| 79 | 79 | return $word; |
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | - foreach ($irregular as $_plural=> $_singular){ |
|
| 82 | + foreach ($irregular as $_plural=> $_singular) { |
|
| 83 | 83 | if (preg_match('/('.$_plural.')$/i', $word, $arr)) { |
| 84 | - return preg_replace('/('.$_plural.')$/i', substr($arr[0],0,1).substr($_singular,1), $word); |
|
| 84 | + return preg_replace('/('.$_plural.')$/i', substr($arr[0], 0, 1).substr($_singular, 1), $word); |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | foreach ($plural as $rule => $replacement) { |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | class NullArgumentPassedToFunction extends Exception { |
| 14 | 14 | |
| 15 | - public static function checkNullArgumentPassedToFunction($message) |
|
| 16 | - { |
|
| 17 | - return new static ($message); |
|
| 18 | - } |
|
| 15 | + public static function checkNullArgumentPassedToFunction($message) |
|
| 16 | + { |
|
| 17 | + return new static ($message); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | 20 | } |