| Conditions | 4 |
| Paths | 8 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4.0312 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 2 | public function compile($statement, Context $context) |
|
| 21 | { |
||
| 22 | 2 | foreach ($statement->stmts as $stmt) { |
|
| 23 | 2 | \PHPSA\nodeVisitorFactory($stmt, $context); |
|
| 24 | } |
||
| 25 | |||
| 26 | 2 | foreach ($statement->catches as $stmt) { |
|
| 27 | 2 | \PHPSA\nodeVisitorFactory($stmt, $context); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | if ($statement->finally !== null) { |
|
| 31 | \PHPSA\nodeVisitorFactory($statement->finally, $context); |
||
| 32 | } |
||
| 33 | 2 | } |
|
| 34 | } |
||
| 35 |