Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 4.125 |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
43 | 1 | public static function getTokenValue(Lexer $lexer) |
|
44 | { |
||
45 | 1 | if (self::isPre200($lexer)) { |
|
46 | // @phpstan-ignore-next-line |
||
47 | if ($lexer->token === null) { |
||
48 | return null; |
||
49 | } |
||
50 | |||
51 | // @phpstan-ignore-next-line |
||
52 | return $lexer->token['value']; |
||
53 | } |
||
54 | |||
55 | // @phpstan-ignore-next-line |
||
56 | 1 | return $lexer->token?->value; |
|
57 | } |
||
59 |