Completed
Pull Request — master (#139)
by Andreas
04:20
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
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $uninflected = [];
205 205
 
206 206
         foreach ($rules as $rule => $pattern) {
207
-            if ( ! is_array($pattern)) {
207
+            if (!is_array($pattern)) {
208 208
                 $regular[$rule] = $pattern;
209 209
 
210 210
                 continue;
@@ -225,20 +225,20 @@  discard block
 block discarded – undo
225 225
 
226 226
         return new Ruleset(
227 227
             new Transformations(...array_map(
228
-                static function (string $pattern, string $replacement) : Transformation {
228
+                static function(string $pattern, string $replacement) : Transformation {
229 229
                     return new Transformation(new Pattern($pattern), $replacement);
230 230
                 },
231 231
                 array_keys($regular),
232 232
                 array_values($regular)
233 233
             )),
234 234
             new Patterns(...array_map(
235
-                static function (string $pattern) : Pattern {
235
+                static function(string $pattern) : Pattern {
236 236
                     return new Pattern($pattern);
237 237
                 },
238 238
                 $uninflected
239 239
             )),
240 240
             new Substitutions(...array_map(
241
-                static function (string $word, string $to) : Substitution {
241
+                static function(string $word, string $to) : Substitution {
242 242
                     return new Substitution(new Word($word), new Word($to));
243 243
                 },
244 244
                 array_keys($irregular),
Please login to merge, or discard this patch.