| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 51 | protected function compile($expr, Context $context) |
|
| 29 | { |
||
| 30 | 51 | $left = $context->getExpressionCompiler()->compile($expr->left); |
|
| 31 | 51 | $right = $context->getExpressionCompiler()->compile($expr->right); |
|
| 32 | |||
| 33 | 51 | if ($left->isTypeKnown() && $right->isTypeKnown()) { |
|
| 34 | 43 | return CompiledExpression::fromZvalValue( |
|
| 35 | 43 | $this->compare($left->getValue(), $right->getValue()) |
|
| 36 | 43 | ); |
|
| 37 | } |
||
| 38 | |||
| 39 | 8 | return new CompiledExpression(); |
|
| 40 | } |
||
| 41 | } |
||
| 42 |