| Conditions | 4 |
| Paths | 6 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 3 | public function compile($statement, Context $context) |
|
| 17 | { |
||
| 18 | 3 | if ($statement->cond) { |
|
| 19 | 3 | $context->getExpressionCompiler()->compile($statement->cond); |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | 3 | if (count($statement->stmts > 0)) { |
|
| 23 | 3 | foreach ($statement->stmts as $caseStatements) { |
|
| 24 | 3 | \PHPSA\nodeVisitorFactory($caseStatements, $context); |
|
| 25 | 3 | } |
|
| 26 | 3 | } |
|
| 27 | 3 | } |
|
| 28 | } |
||
| 29 |