|
@@ 15-19 (lines=5) @@
|
| 12 |
|
public function getTokenAt($code, $cursor) |
| 13 |
|
{ |
| 14 |
|
$test7 = substr($code, $cursor, 7); |
| 15 |
|
if ($test7 === 'empty()') { |
| 16 |
|
return new Token(Token::T_EMPTY, $test7, $cursor, $cursor + 7); |
| 17 |
|
} elseif ($test7 === 'false()') { |
| 18 |
|
return new Token(Token::T_FALSE, $test7, $cursor, $cursor + 7); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
$test6 = substr($code, $cursor, 6); |
| 22 |
|
if ($test6 === 'null()') { |
|
@@ 22-26 (lines=5) @@
|
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
$test6 = substr($code, $cursor, 6); |
| 22 |
|
if ($test6 === 'null()') { |
| 23 |
|
return new Token(Token::T_NULL, $test6, $cursor, $cursor + 6); |
| 24 |
|
} elseif ($test6 === 'true()') { |
| 25 |
|
return new Token(Token::T_TRUE, $test6, $cursor, $cursor + 6); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
return null; |
| 29 |
|
} |