| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function renderRecursiveToString(NodeCollection $nodeCollection, $level = 0): string |
||
| 40 | { |
||
| 41 | $output = ''; |
||
| 42 | |||
| 43 | foreach($nodeCollection as $node) |
||
| 44 | { |
||
| 45 | $output .= $this->template($node,$level); |
||
| 46 | |||
| 47 | if(!$node->isLeaf()) $output .= $this->renderRecursiveToString($node->children(),$level+1); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $output; |
||
| 51 | } |
||
| 52 | |||
| 62 |