| Conditions | 5 |
| Paths | 7 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | private function isLiteral($n, $str) { |
||
| 27 | //Is it a normal literal character |
||
| 28 | return ($str->has($n) && $str->identifyChar($n, $str) === Tokenizer::NAME |
||
| 29 | //but a subtract can be part of a class name or a mathematical operation |
||
| 30 | || ($str->has($n) && $str->identifyChar($n) == Tokenizer::SUBTRACT && !is_numeric($str->read($n-1))) |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 40 | } |