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