Passed
Push — master ( 8f1e95...1a0a87 )
by Koen
08:58
created
src/TokenStream.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
         if ($this->isPunctuation($char)) {
98 98
             return $this->readPunctuation();
99 99
         }
100
-        $this->input->error('Cannot handle character: ' . $char . ' (ord: ' . ord($char) . ')');
100
+        $this->input->error('Cannot handle character: '.$char.' (ord: '.ord($char).')');
101 101
     }
102 102
 
103 103
     protected function skipComment() {
104 104
         $this->readWhile(
105
-            function ($char) {
105
+            function($char) {
106 106
                 return $char != "\n";
107 107
             }
108 108
         );
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     protected function readNumber() {
189 189
         $hasDot = false;
190 190
         $number = $this->readWhile(
191
-            function ($char) use (&$hasDot) {
191
+            function($char) use (&$hasDot) {
192 192
                 if ($char == '.') {
193 193
                     if ($hasDot) {
194 194
                         return false;
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     protected function readIdentifier() {
209 209
         $first      = false;
210 210
         $identifier = $this->readWhile(
211
-            function ($char) use (&$first) {
211
+            function($char) use (&$first) {
212 212
                 if ($first) {
213 213
                     $first = false;
214 214
                     return $this->isStartIdentifierCharacter($char);
Please login to merge, or discard this patch.
src/InputStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
     }
59 59
 
60 60
     public function error($msg) {
61
-        throw new ParseException($msg . ' (' . $this->line . ':' . $this->column . ')');
61
+        throw new ParseException($msg.' ('.$this->line.':'.$this->column.')');
62 62
     }
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.