Passed
Push — master ( 40aa3c...acd5ba )
by Kirill
03:30
created
src/Lexer/Driver/MultistateLexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Lexer/Driver/ParleLexer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Lexer/Result/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.