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