| Conditions | 5 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function compile($stmt, Context $context) |
||
| 18 | { |
||
| 19 | $compiler = $context->getExpressionCompiler(); |
||
| 20 | |||
| 21 | if (count($stmt->declares) > 0) { |
||
| 22 | foreach ($stmt->declares as $declare) { |
||
| 23 | $compiler->compile($declare->value); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | if (count($stmt->stmts) > 0) { |
||
| 28 | foreach ($stmt->stmts as $stmt) { |
||
| 29 | \PHPSA\nodeVisitorFactory($stmt, $context); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |