| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 1 | public function compile($statement, Context $context) |
|
| 21 | { |
||
| 22 | 1 | $context->addVariable(new Variable($statement->var, null, CompiledExpression::OBJECT)); |
|
| 23 | |||
| 24 | 1 | if (count($statement->stmts) === 0) { |
|
| 25 | $context->notice('not-implemented-body', 'Missing body', $statement); |
||
| 26 | } |
||
| 27 | |||
| 28 | 1 | foreach ($statement->stmts as $stmt) { |
|
| 29 | 1 | \PHPSA\nodeVisitorFactory($stmt, $context); |
|
| 30 | 1 | } |
|
| 31 | 1 | } |
|
| 32 | } |
||
| 33 |