| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function compile($expr, Context $context) |
||
| 23 | { |
||
| 24 | $left = $context->getExpressionCompiler()->compile($expr->left); |
||
| 25 | $right = $context->getExpressionCompiler()->compile($expr->right); |
||
| 26 | |||
| 27 | if ($left->isTypeKnown() && $right->isTypeKnown()) { |
||
| 28 | return CompiledExpression::fromZvalValue( |
||
| 29 | $left->getValue() !== $right->getValue() |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | return new CompiledExpression(); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |