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