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