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