| Conditions | 5 |
| Paths | 16 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 6 | public function compile($stmt, Context $context) |
|
| 21 | { |
||
| 22 | 6 | foreach ($stmt->init as $init) { |
|
| 23 | 2 | $context->getExpressionCompiler()->compile($init); |
|
| 24 | 6 | } |
|
| 25 | |||
| 26 | 6 | foreach ($stmt->cond as $cond) { |
|
| 27 | 3 | $context->getExpressionCompiler()->compile($cond); |
|
| 28 | 6 | } |
|
| 29 | |||
| 30 | 6 | foreach ($stmt->loop as $loop) { |
|
| 31 | 2 | $context->getExpressionCompiler()->compile($loop); |
|
| 32 | 6 | } |
|
| 33 | |||
| 34 | 6 | foreach ($stmt->stmts as $statement) { |
|
| 35 | 3 | \PHPSA\nodeVisitorFactory($statement, $context); |
|
| 36 | 6 | } |
|
| 37 | 6 | } |
|
| 38 | } |
||
| 39 |