Conditions | 6 |
Paths | 16 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 8.304 |
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 | 2 | } |
|
25 | |||
26 | 2 | foreach ($statement->catches as $stmt) { |
|
27 | 2 | \PHPSA\nodeVisitorFactory($stmt, $context); |
|
28 | 2 | } |
|
29 | |||
30 | 2 | if ($statement->finallyStmts !== null) { |
|
31 | if (count($statement->finallyStmts) > 0) { |
||
32 | foreach ($statement->finallyStmts as $stmt) { |
||
33 | \PHPSA\nodeVisitorFactory($stmt, $context); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 | 2 | } |
|
38 | } |
||
39 |