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