@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | private function loadDocument($doc) { |
33 | 33 | libxml_use_internal_errors(true); |
34 | 34 | if ($this->document->loadXml($doc) === false) { |
35 | - $this->document->loadHtml('<' . '?xml encoding="UTF-8">' .$doc); |
|
35 | + $this->document->loadHtml('<'.'?xml encoding="UTF-8">'.$doc); |
|
36 | 36 | |
37 | 37 | if (strpos($doc, '<!') !== 0) { |
38 | 38 | $templateNode = $this->document->getElementsByTagName('template')[0]; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | if ($document) return $this->document; |
79 | 79 | |
80 | 80 | |
81 | - $output = ($this->document->doctype) ? $this->document->saveXml($this->document->doctype) . "\n" : ''; |
|
81 | + $output = ($this->document->doctype) ? $this->document->saveXml($this->document->doctype)."\n" : ''; |
|
82 | 82 | |
83 | 83 | if ($this->document->documentElement->tagName !== 'template') $output .= $this->document->saveXml($this->document->documentElement, LIBXML_NOEMPTYTAG); |
84 | 84 | else $output = $this->printDocument($this->document); |