| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | private function collectRecursions(\DOMElement $node): array |
||
| 25 | { |
||
| 26 | $children = $this->findRecursionParent($node->firstChild); |
||
| 27 | if ($children instanceof \DOMElement) { |
||
| 28 | $node->removeChild($children); |
||
| 29 | $children = $this->parse($children); |
||
| 30 | } |
||
| 31 | |||
| 32 | return ['parent' => $this->stringify($node), 'children' => $children]; |
||
| 33 | } |
||
| 46 |