Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
51 | 10 | private function loop(array $children) |
|
52 | { |
||
53 | /** @var Node|array|Closure $child */ |
||
54 | 10 | foreach ($children as $child) { |
|
55 | 10 | $type = $this->realType($child); |
|
56 | 10 | $this->checkType($type); |
|
57 | 9 | $this->child($type === 'Closure' ? call_user_func($child) : $child); |
|
58 | 9 | } |
|
59 | 9 | } |
|
60 | |||
92 |