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