@@ -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 | ); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $this->input->next(); |
| 139 | 139 | } |
| 140 | 140 | if ($this->input->peek() != '[') { |
| 141 | - $this->error('Unexpected character ' . $this->input->peek() . ', expected ['); |
|
| 141 | + $this->error('Unexpected character '.$this->input->peek().', expected ['); |
|
| 142 | 142 | } |
| 143 | 143 | $this->input->next(); |
| 144 | 144 | while (!$this->input->eof()) { |
@@ -162,12 +162,12 @@ discard block |
||
| 162 | 162 | // we have an equal number of equal signs |
| 163 | 163 | if ($endNumberOfEqualsSigns == $startNumberOfEqualsSigns) { |
| 164 | 164 | if ($this->input->peek() != ']') { |
| 165 | - $this->error('Unexpected character ' . $this->input->peek() . ', expected ['); |
|
| 165 | + $this->error('Unexpected character '.$this->input->peek().', expected ['); |
|
| 166 | 166 | } |
| 167 | 167 | $this->input->next(); |
| 168 | 168 | break; |
| 169 | 169 | } else { |
| 170 | - $str .= $char . str_repeat('=', $endNumberOfEqualsSigns); |
|
| 170 | + $str .= $char.str_repeat('=', $endNumberOfEqualsSigns); |
|
| 171 | 171 | } |
| 172 | 172 | } else { |
| 173 | 173 | $str .= $char; |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | protected function readNumber() { |
| 223 | 223 | $hasDot = false; |
| 224 | 224 | $number = $this->readWhile( |
| 225 | - function ($char) use (&$hasDot) { |
|
| 225 | + function($char) use (&$hasDot) { |
|
| 226 | 226 | if ($char == '.') { |
| 227 | 227 | if ($hasDot) { |
| 228 | 228 | return false; |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | protected function readIdentifier() { |
| 243 | 243 | $first = false; |
| 244 | 244 | $identifier = $this->readWhile( |
| 245 | - function ($char) use (&$first) { |
|
| 245 | + function($char) use (&$first) { |
|
| 246 | 246 | if ($first) { |
| 247 | 247 | $first = false; |
| 248 | 248 | return $this->isStartIdentifierCharacter($char); |