Completed
Pull Request — master (#139)
by Andreas
04:45
created
lib/Doctrine/Inflector/Rules/Substitutions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $toWord = $this->substitutions[$lowerWord]->getTo()->getWord();
47 47
 
48 48
             if ($firstLetterUppercase) {
49
-                return strtoupper($toWord[0]) . substr($toWord, 1);
49
+                return strtoupper($toWord[0]).substr($toWord, 1);
50 50
             }
51 51
 
52 52
             return $toWord;
Please login to merge, or discard this patch.
lib/Doctrine/Inflector/Rules/Pattern.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         if (isset($this->pattern[0]) && $this->pattern[0] === '/') {
22 22
             $this->regex = $this->pattern;
23 23
         } else {
24
-            $this->regex = '/' . $this->pattern . '/i';
24
+            $this->regex = '/'.$this->pattern.'/i';
25 25
         }
26 26
     }
27 27
 
Please login to merge, or discard this patch.
lib/Doctrine/Inflector/Inflector.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@
 block discarded – undo
345 345
 
346 346
             // Assume ISO-8859-1 if not UTF-8
347 347
             $characters['in'] =
348
-                  chr(128)
348
+                    chr(128)
349 349
                 . chr(131)
350 350
                 . chr(138)
351 351
                 . chr(142)
Please login to merge, or discard this patch.
lib/Doctrine/Inflector/Rules/Patterns.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
     {
21 21
         $this->patterns = $patterns;
22 22
 
23
-        $patterns = array_map(static function (Pattern $pattern) : string {
23
+        $patterns = array_map(static function(Pattern $pattern) : string {
24 24
             return $pattern->getPattern();
25 25
         }, $this->patterns);
26 26
 
27
-        $this->regex = '/^(?:' . implode('|', $patterns) . ')$/i';
27
+        $this->regex = '/^(?:'.implode('|', $patterns).')$/i';
28 28
     }
29 29
 
30 30
     public function matches(string $word) : bool
Please login to merge, or discard this patch.
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.