| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3.0123 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 3 | public function compile($stmt, Context $context) |
|
| 21 | { |
||
| 22 | 3 | $context->getExpressionCompiler()->compile($stmt->cond); |
|
| 23 | |||
| 24 | 3 | if (count($stmt->cases) > 0) { |
|
| 25 | 3 | foreach ($stmt->cases as $case) { |
|
| 26 | 3 | \PHPSA\nodeVisitorFactory($case, $context); |
|
| 27 | 3 | } |
|
| 28 | 3 | } else { |
|
| 29 | $context->notice('not-implemented-body', 'Missing body', $stmt); |
||
| 30 | } |
||
| 31 | 3 | } |
|
| 32 | } |
||
| 33 |