Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 10 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | View Code Duplication | private function getContent($document) { |
|
23 | $newNode = $document->documentElement; |
||
24 | $result = []; |
||
25 | if ($newNode->tagName === 'root') { |
||
26 | foreach ($newNode->childNodes as $node) { |
||
27 | $result[] = $this->getClonedElement($node); |
||
28 | } |
||
29 | } |
||
30 | return $result; |
||
31 | } |
||
32 | |||
38 |