Passed
Push — master ( 04d7e0...bd8f2a )
by Kirill
02:28
created
src/Grammar/PP2/Builder/TokenBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Grammar/PP2/Analyzer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.