Completed
Pull Request — master (#139)
by Andreas
04:45
created
lib/Doctrine/Common/Inflector/Inflector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         $uninflected = [];
204 204
 
205 205
         foreach ($rules as $rule => $pattern) {
206
-            if ( ! is_array($pattern)) {
206
+            if (!is_array($pattern)) {
207 207
                 continue;
208 208
             }
209 209
 
@@ -226,20 +226,20 @@  discard block
 block discarded – undo
226 226
 
227 227
         return new Ruleset(
228 228
             new Transformations(...array_map(
229
-                static function (string $pattern, string $replacement) : Transformation {
229
+                static function(string $pattern, string $replacement) : Transformation {
230 230
                     return new Transformation(new Pattern($pattern), $replacement);
231 231
                 },
232 232
                 array_keys($regular),
233 233
                 array_values($regular)
234 234
             )),
235 235
             new Patterns(...array_map(
236
-                static function (string $pattern) : Pattern {
236
+                static function(string $pattern) : Pattern {
237 237
                     return new Pattern($pattern);
238 238
                 },
239 239
                 $uninflected
240 240
             )),
241 241
             new Substitutions(...array_map(
242
-                static function (string $word, string $to) : Substitution {
242
+                static function(string $word, string $to) : Substitution {
243 243
                     return new Substitution(new Word($word), new Word($to));
244 244
                 },
245 245
                 array_keys($irregular),
Please login to merge, or discard this patch.