Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
54 | 2 | protected function createDOMDocument(string $xmlString): \DOMDocument |
|
55 | { |
||
56 | 2 | $document = new \DOMDocument(); |
|
57 | 2 | $document->preserveWhiteSpace = true; |
|
58 | 2 | $document->formatOutput = true; |
|
59 | 2 | $document->recover = true; |
|
60 | |||
61 | 2 | $document->loadXML($xmlString); |
|
62 | |||
63 | 2 | return $document; |
|
64 | } |
||
66 |