@@ -58,7 +58,7 @@ |
||
| 58 | 58 | { |
| 59 | 59 | /** @noinspection HtmlUnknownTag */ |
| 60 | 60 | return $this->parser |
| 61 | - ? (string)$this->parser |
|
| 61 | + ? (string) $this->parser |
|
| 62 | 62 | : '<undefined>'; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -31,7 +31,7 @@ |
||
| 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) |
@@ -8,7 +8,7 @@ |
||
| 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() |
@@ -69,7 +69,7 @@ |
||
| 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 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 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 |
||
| 141 | 141 | // ignore |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - return (string)$this->parser; |
|
| 144 | + return (string) $this->parser; |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | } |
@@ -97,7 +97,7 @@ |
||
| 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 | } |