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