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