| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | protected function fillEntries(array $nodes): string |
|
| 29 | { |
||
| 30 | 1 | $list = HtmlElement::init('ul'); |
|
| 31 | 1 | foreach ($nodes as $subNode) { |
|
| 32 | 1 | if ($subNode->getNode() && $subNode->getNode()->isDir()) { |
|
| 33 | 1 | $entry = $this->getSubEntry($subNode); |
|
| 34 | 1 | $entry->addChild($this->fillEntries($subNode->getSubNodes())); |
|
| 35 | 1 | $list->addChild($entry); |
|
| 36 | } else { |
||
| 37 | 1 | $list->addChild($this->getEntry($subNode)); |
|
| 38 | } |
||
| 39 | } |
||
| 40 | 1 | return strval($list); |
|
| 41 | } |
||
| 60 |