| Conditions | 4 |
| Paths | 6 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | private function run(\DOMNode $node, $carry = []): array |
||
| 35 | { |
||
| 36 | if ($this->config->manager->isParentNode($node)) { |
||
| 37 | $carry = \array_merge($carry, $this->run($node->firstChild, [])); |
||
| 38 | } elseif ($node instanceof \DOMElement) { |
||
| 39 | $carry[] = $this->config->parser->parse($node); |
||
| 40 | } |
||
| 41 | |||
| 42 | return null !== $node->nextSibling ? $this->run($node->nextSibling, $carry) : $carry; |
||
| 43 | } |
||
| 45 |