Passed
Push — master ( 66870e...b8c5dd )
by Koen
03:08
created
src/Parser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 return new TableASTNode([new TableEntryASTNode($value, $result)]);
49 49
             }
50 50
             
51
-            $this->input->error('Parser has finished parsing, but end of file was not reached. Next character is ' . $this->input->peek()->getValue());
51
+            $this->input->error('Parser has finished parsing, but end of file was not reached. Next character is '.$this->input->peek()->getValue());
52 52
         }
53 53
 
54 54
         return $result;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             if ($token->getValue() === 'nil') {
78 78
                 return new NilASTNode();
79 79
             } else {
80
-                $this->input->error('Unexpected keyword: ' . $token->getValue());
80
+                $this->input->error('Unexpected keyword: '.$token->getValue());
81 81
             }
82 82
         }
83 83
         $this->unexpected();
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         if ($this->isPunctuation($char)) {
174 174
             $this->input->next();
175 175
         } else {
176
-            $this->input->error('Expecting punctuation: "' . $char . '"');
176
+            $this->input->error('Expecting punctuation: "'.$char.'"');
177 177
         }
178 178
     }
179 179
 
@@ -181,6 +181,6 @@  discard block
 block discarded – undo
181 181
      * @throws ParseException
182 182
      */
183 183
     protected function unexpected() {
184
-        $this->input->error('Unexpected token: ' . json_encode($this->input->peek()));
184
+        $this->input->error('Unexpected token: '.json_encode($this->input->peek()));
185 185
     }
186 186
 }
187 187
\ No newline at end of file
Please login to merge, or discard this patch.
tests/LuaToPhpConverterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     }
238 238
 
239 239
     public function testAdvancedTable() {
240
-        $parser = new Parser(new TokenStream(new InputStream(file_get_contents(__DIR__ . '/advanced-test.lua'))));
240
+        $parser = new Parser(new TokenStream(new InputStream(file_get_contents(__DIR__.'/advanced-test.lua'))));
241 241
 
242 242
         $parser->parse();
243 243
     }
Please login to merge, or discard this patch.