@@ -74,7 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | $match = $this->parser->parse($input, $offset + $length + $skip, $context); |
| 76 | 76 | if ($match instanceof Success) { |
| 77 | - $length += $skip + $match->length; |
|
| 77 | + $length += $skip + $match->length; |
|
| 78 | 78 | $childMatches[] = $match; |
| 79 | 79 | } |
| 80 | 80 | } while (($match instanceof Success) |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | private function addProcessors(Success $match, $localResults) { |
| 120 | 120 | if (!empty($this->definition->processors)) { |
| 121 | 121 | $processors = $this->definition->processors; |
| 122 | - $match->addResultCallback(function (&$results) use ($processors, $localResults) { |
|
| 122 | + $match->addResultCallback(function(&$results) use ($processors, $localResults) { |
|
| 123 | 123 | foreach ($processors as $key => $processor) { |
| 124 | 124 | $results[$key] = $processor($localResults, $results); |
| 125 | 125 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | // ignore |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | - return (string)$this->parser; |
|
| 171 | + return (string) $this->parser; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | } |