@@ -9,17 +9,17 @@ discard block |
||
9 | 9 | class FluidXml implements FluidInterface |
10 | 10 | { |
11 | 11 | use FluidAliasesTrait, |
12 | - FluidSaveTrait, |
|
13 | - NewableTrait, |
|
14 | - ReservedCallTrait, // For compatibility with PHP 5.6. |
|
15 | - ReservedCallStaticTrait; // For compatibility with PHP 5.6. |
|
12 | + FluidSaveTrait, |
|
13 | + NewableTrait, |
|
14 | + ReservedCallTrait, // For compatibility with PHP 5.6. |
|
15 | + ReservedCallStaticTrait; // For compatibility with PHP 5.6. |
|
16 | 16 | |
17 | 17 | const ROOT_NODE = 'doc'; |
18 | 18 | |
19 | 19 | private $defaults = [ 'root' => self::ROOT_NODE, |
20 | - 'version' => '1.0', |
|
21 | - 'encoding' => 'UTF-8', |
|
22 | - 'stylesheet' => null ]; |
|
20 | + 'version' => '1.0', |
|
21 | + 'encoding' => 'UTF-8', |
|
22 | + 'stylesheet' => null ]; |
|
23 | 23 | |
24 | 24 | private $document; |
25 | 25 | private $handler; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | // Now, we can further populate the DOM with any stylesheet or child. |
65 | 65 | $this->initStylesheet($options) |
66 | - ->initRoot($options); |
|
66 | + ->initRoot($options); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | protected function mergeOptions(&$arguments) |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $dom->formatOutput = true; |
92 | 92 | $dom->preserveWhiteSpace = false; |
93 | 93 | if (array_key_exists('standalone', $options)) { |
94 | - $dom->xmlStandalone = (bool) $options['standalone']; |
|
94 | + $dom->xmlStandalone = (bool) $options['standalone']; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | return $dom; |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | { |
102 | 102 | if (! empty($options['stylesheet'])) { |
103 | 103 | $attrs = 'type="text/xsl" ' |
104 | - . "encoding=\"{$options['encoding']}\" " |
|
105 | - . 'indent="yes" ' |
|
106 | - . "href=\"{$options['stylesheet']}\""; |
|
104 | + . "encoding=\"{$options['encoding']}\" " |
|
105 | + . 'indent="yes" ' |
|
106 | + . "href=\"{$options['stylesheet']}\""; |
|
107 | 107 | |
108 | 108 | $stylesheet = new \DOMProcessingInstruction('xml-stylesheet', $attrs); |
109 | 109 |