@@ -97,12 +97,12 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -58,6 +58,6 @@ |
||
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 |