Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 1 | protected function fillEntries(array $nodes): string |
|
28 | { |
||
29 | 1 | $list = HtmlElement::init('ul'); |
|
30 | 1 | foreach ($nodes as $subNode) { |
|
31 | 1 | $entry = $this->getEntry($subNode); |
|
32 | 1 | $entry->addChild($this->fillEntries($subNode->getSubNodes())); |
|
33 | 1 | $list->addChild($entry); |
|
34 | } |
||
35 | 1 | return strval($list); |
|
36 | } |
||
55 |