Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
21 | 3 | private function traverseNode(Node $node) |
|
22 | { |
||
23 | 3 | $this->visitor->enterNode($node); |
|
24 | 3 | $children = $node->getChildren(); |
|
25 | 3 | foreach ($children as $child) { |
|
26 | 3 | if ($child instanceof Node) { |
|
27 | 3 | $this->traverseNode($child); |
|
28 | 3 | } |
|
29 | 3 | } |
|
30 | |||
31 | 3 | $this->visitor->leaveNode($node); |
|
32 | 3 | } |
|
33 | } |
||
34 |