@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function getId(): int |
| 42 | 42 | { |
| 43 | 43 | if ($this->id === null) { |
| 44 | - $name = $this->name . '<' . ($this->keep ? '+' : '-') . '>'; |
|
| 44 | + $name = $this->name.'<'.($this->keep ? '+' : '-').'>'; |
|
| 45 | 45 | |
| 46 | 46 | $this->id = $this->mapper->id($name); |
| 47 | 47 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $iterator = new LookaheadIterator($tokens); |
| 131 | 131 | $rule = $this->sequence($iterator); |
| 132 | 132 | |
| 133 | - if ($this->rules->isKeep($name) && ! $rule->hasName()) { |
|
| 133 | + if ($this->rules->isKeep($name) && !$rule->hasName()) { |
|
| 134 | 134 | $rule->rename($name); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | $continue = $tokens->getNext() && $tokens->getNext()->name() === Lexer::T_OR; |
| 170 | 170 | |
| 171 | - if (! $continue) { |
|
| 171 | + if (!$continue) { |
|
| 172 | 172 | break; |
| 173 | 173 | } |
| 174 | 174 | |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | { |
| 297 | 297 | $name = $token->value(1); |
| 298 | 298 | |
| 299 | - if (! $this->tokens->has($name)) { |
|
| 299 | + if (!$this->tokens->has($name)) { |
|
| 300 | 300 | $error = \sprintf('Token "%s" is not defined', $name); |
| 301 | 301 | throw (new GrammarException($error)) |
| 302 | 302 | ->throwsIn($this->file, $token->offset()); |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | { |
| 315 | 315 | $name = $invocation->value(1); |
| 316 | 316 | |
| 317 | - if (! $this->rules->has($name)) { |
|
| 317 | + if (!$this->rules->has($name)) { |
|
| 318 | 318 | $error = \sprintf('Rule "%s" is not defined', $name); |
| 319 | 319 | throw (new GrammarException($error)) |
| 320 | 320 | ->throwsIn($this->file, $invocation->offset()); |