Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
6 | public function __construct(string $fileName, string $fileData, $formatOutput = false) |
||
7 | { |
||
8 | $domDocument = new \DOMDocument; |
||
9 | if ($formatOutput) { |
||
10 | $domDocument->preserveWhiteSpace = false; |
||
11 | $domDocument->formatOutput = true; |
||
12 | } |
||
13 | $domDocument->loadXML($fileData); |
||
14 | $fileData = $domDocument->saveXML(); |
||
15 | |||
16 | parent::__construct($fileName, $fileData, 'text/xml'); |
||
17 | } |
||
19 |