@@ -55,7 +55,7 @@ |
||
55 | 55 | public function getTokenDefinitions(): iterable |
56 | 56 | { |
57 | 57 | foreach ($this->tokens as $name => $pcre) { |
58 | - $keep = ! \in_array($name, $this->skipped, true); |
|
58 | + $keep = !\in_array($name, $this->skipped, true); |
|
59 | 59 | $state = $this->getTokenState($name); |
60 | 60 | $next = $this->getNextState($name); |
61 | 61 |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $this->map[$this->id] = $name; |
74 | 74 | $this->tokens[$this->id] = $pcre; |
75 | 75 | } catch (LexerException $e) { |
76 | - $message = \preg_replace('/rule\h+id\h+\d+/iu', 'token ' . $name, $e->getMessage()); |
|
76 | + $message = \preg_replace('/rule\h+id\h+\d+/iu', 'token '.$name, $e->getMessage()); |
|
77 | 77 | |
78 | 78 | throw new BadLexemeException($message); |
79 | 79 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | foreach ($this->tokens as $id => $pcre) { |
167 | 167 | $name = $this->map[$id]; |
168 | 168 | |
169 | - yield new TokenDefinition($name, $pcre, ! \in_array($name, $this->skipped, true)); |
|
169 | + yield new TokenDefinition($name, $pcre, !\in_array($name, $this->skipped, true)); |
|
170 | 170 | } |
171 | 171 | } |
172 | 172 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | public function __construct(string $name, $value, int $offset = 0) |
39 | 39 | { |
40 | 40 | $this->name = $name; |
41 | - $this->value = (array)$value; |
|
41 | + $this->value = (array) $value; |
|
42 | 42 | $this->offset = $offset; |
43 | 43 | } |
44 | 44 |