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