| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | private function matchSymbolToken(): Token |
||
| 61 | { |
||
| 62 | $result = $this->matcher->match($this->buffer, $this->tokenFactory); |
||
| 63 | if ($result) { |
||
| 64 | return $this->matcher->getToken(); |
||
| 65 | } |
||
| 66 | $position = $this->buffer->getTokenPosition(); |
||
| 67 | if ($this->buffer->isEnd()) { |
||
| 68 | throw new Exception("Unexpected end of input at position {$position->getFinishOffset()}"); |
||
| 69 | } |
||
| 70 | throw new Exception("Unexpected character at position {$position->getFinishOffset()}"); |
||
| 71 | } |
||
| 73 |