Completed
Push — master ( 075373...9cb16b )
by Martijn
02:56
created
src/Parser/Terminal/Range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->last  = $last === null
32 32
             ? null
33 33
             : self::parseCharacter($last);
34
-        $this->in    = (bool)$in;
34
+        $this->in    = (bool) $in;
35 35
     }
36 36
 
37 37
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Core/Context/CaseSensitiveContextTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     public function pushCaseSensitivity($caseSensitive = true)
10 10
     {
11
-        array_push($this->caseSensitivity, (bool)$caseSensitive);
11
+        array_push($this->caseSensitivity, (bool) $caseSensitive);
12 12
     }
13 13
 
14 14
     public function popCaseSensitivity()
Please login to merge, or discard this patch.
src/Parser/Structure/Repeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             if ($skip !== false) {
70 70
                 $match = $this->parser->parse($input, $offset + $length + $skip, $context);
71 71
                 if ($match instanceof Success) {
72
-                    $length          += $skip + $match->length;
72
+                    $length += $skip + $match->length;
73 73
                     $childMatches[] = $match;
74 74
                 }
75 75
             }
Please login to merge, or discard this patch.
src/Builder/Implementation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             && !empty($this->definition->processors)) {
122 122
 
123 123
             foreach ($this->definition->processors as $key => $processor) {
124
-                $match->addResultCallback(function (&$results) use ($key, $processor, $localResults) {
124
+                $match->addResultCallback(function(&$results) use ($key, $processor, $localResults) {
125 125
                     $results[$key] = $processor($localResults, $results);
126 126
                 });
127 127
             }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             // ignore
142 142
         }
143 143
 
144
-        return (string)$this->parser;
144
+        return (string) $this->parser;
145 145
     }
146 146
 
147 147
 }
Please login to merge, or discard this patch.
src/Core/ArgumentsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      */
98 98
     protected static function getArguments($arguments, $arrayToSequence = true)
99 99
     {
100
-        return array_map(function ($argument) use ($arrayToSequence) {
100
+        return array_map(function($argument) use ($arrayToSequence) {
101 101
             return self::getArgument($argument, $arrayToSequence);
102 102
         }, $arguments);
103 103
     }
Please login to merge, or discard this patch.
src/Builder/AbstractRuleset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     protected static function isRuleDefined(&$rules, $names)
180 180
     {
181
-        foreach ((array)$names as $key) {
181
+        foreach ((array) $names as $key) {
182 182
             if (!isset($rules[$key])) {
183 183
                 return false;
184 184
             }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
     protected static function undefineRule(&$rules, $names)
191 191
     {
192
-        foreach ((array)$names as $key) {
192
+        foreach ((array) $names as $key) {
193 193
             unset($rules[$key]);
194 194
         }
195 195
     }
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     public function __toString()
277 277
     {
278 278
         try {
279
-            return (string)$this->getRootParser();
279
+            return (string) $this->getRootParser();
280 280
         } catch (Exception $e) {
281 281
             // ignore
282 282
         }
Please login to merge, or discard this patch.