Conditions | 3 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
14 | 55 | /** |
|
15 | * Returns a XML string content as a DOMDocument or as a formated XML string |
||
16 | 55 | * @throws InvalidArgumentException |
|
17 | 45 | * @param string|null $string |
|
18 | 30 | * @param bool $asDomDocument |
|
19 | * @return DOMDocument|string|null |
||
20 | 10 | */ |
|
21 | public static function getFormattedXml(?string $string, bool $asDomDocument = false) |
||
55 |