Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | private function findRecursionParent(\DOMNode $node): ?\DOMElement |
||
36 | { |
||
37 | if ($node instanceof \DOMElement && $this->manager->isRecursiveParentNode($node)) { |
||
38 | return $node; |
||
39 | } elseif (null !== $node->nextSibling) { |
||
40 | return $this->findRecursionParent($node->nextSibling); |
||
41 | } else { |
||
42 | return null; |
||
43 | } |
||
46 |