Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
21 | protected function compile($expr, Context $context) |
||
22 | { |
||
23 | $compiledExpression = $context->getExpressionCompiler()->compile($expr->expr); |
||
24 | |||
25 | if ($compiledExpression->isTypeKnown()) { |
||
26 | return new CompiledExpression(CompiledExpression::INTEGER, (int) $compiledExpression->getValue()); |
||
27 | } |
||
28 | |||
29 | return new CompiledExpression(); |
||
30 | } |
||
31 | } |
||
32 |