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