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