| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 14 | protected function compile($expr, Context $context) |
|
| 21 | { |
||
| 22 | 14 | $compiler = $context->getExpressionCompiler(); |
|
| 23 | |||
| 24 | 14 | if ($expr->name instanceof Node\Name) { |
|
| 25 | 14 | if ($expr->name->parts[0] === 'true') { |
|
|
|
|||
| 26 | 10 | return new CompiledExpression(CompiledExpression::BOOLEAN, true); |
|
| 27 | } |
||
| 28 | |||
| 29 | 9 | if ($expr->name->parts[0] === 'false') { |
|
| 30 | 5 | return new CompiledExpression(CompiledExpression::BOOLEAN, false); |
|
| 31 | } |
||
| 32 | 4 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @todo Implement check |
||
| 36 | */ |
||
| 37 | 4 | return $compiler->compile($expr->name); |
|
| 38 | } |
||
| 39 | } |
||
| 40 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.