@@ -136,7 +136,6 @@ discard block |
||
| 136 | 136 | * |
| 137 | 137 | * ```php |
| 138 | 138 | * $xml = fluidxml(); |
| 139 | - |
|
| 140 | 139 | * $xml->query("/doc/book[@id='123']"); |
| 141 | 140 | * |
| 142 | 141 | * // Relative queries are valid. |
@@ -156,7 +155,6 @@ discard block |
||
| 156 | 155 | * |
| 157 | 156 | * ```php |
| 158 | 157 | * $xml = fluidxml(); |
| 159 | - |
|
| 160 | 158 | * $xml->appendChild('title', 'The Theory Of Everything'); |
| 161 | 159 | * $xml->appendChild([ 'author' => 'S. Hawking' ]); |
| 162 | 160 | * |
@@ -234,8 +232,8 @@ discard block |
||
| 234 | 232 | class FluidXml implements FluidInterface |
| 235 | 233 | { |
| 236 | 234 | use FluidNamespaceTrait, |
| 237 | - FluidXmlShadowTrait, // For compatibility with PHP 5.6. |
|
| 238 | - FluidContextShadowTrait; // For compatibility with PHP 5.6. |
|
| 235 | + FluidXmlShadowTrait, // For compatibility with PHP 5.6. |
|
| 236 | + FluidContextShadowTrait; // For compatibility with PHP 5.6. |
|
| 239 | 237 | |
| 240 | 238 | const ROOT_NODE = 'doc'; |
| 241 | 239 | |
@@ -266,9 +264,9 @@ discard block |
||
| 266 | 264 | public function __construct($root = null, $options = []) |
| 267 | 265 | { |
| 268 | 266 | $defaults = [ 'root' => self::ROOT_NODE, |
| 269 | - 'version' => '1.0', |
|
| 270 | - 'encoding' => 'UTF-8', |
|
| 271 | - 'stylesheet' => null ]; |
|
| 267 | + 'version' => '1.0', |
|
| 268 | + 'encoding' => 'UTF-8', |
|
| 269 | + 'stylesheet' => null ]; |
|
| 272 | 270 | |
| 273 | 271 | if (\is_string($root)) { |
| 274 | 272 | // The root option can be specified as first argument |
@@ -292,9 +290,9 @@ discard block |
||
| 292 | 290 | |
| 293 | 291 | if ($opts['stylesheet']) { |
| 294 | 292 | $attrs = "type=\"text/xsl\" " |
| 295 | - . "encoding=\"{$opts['encoding']}\" " |
|
| 296 | - . "indent=\"yes\" " |
|
| 297 | - . "href=\"{$opts['stylesheet']}\""; |
|
| 293 | + . "encoding=\"{$opts['encoding']}\" " |
|
| 294 | + . "indent=\"yes\" " |
|
| 295 | + . "href=\"{$opts['stylesheet']}\""; |
|
| 298 | 296 | $stylesheet = new \DOMProcessingInstruction('xml-stylesheet', $attrs); |
| 299 | 297 | |
| 300 | 298 | $this->dom->insertBefore($stylesheet, $this->dom->documentElement); |
@@ -493,7 +491,7 @@ discard block |
||
| 493 | 491 | class FluidContext implements FluidInterface, \ArrayAccess, \Iterator |
| 494 | 492 | { |
| 495 | 493 | use FluidNamespaceTrait, |
| 496 | - FluidContextShadowTrait; // For compatibility with PHP 5.6. |
|
| 494 | + FluidContextShadowTrait; // For compatibility with PHP 5.6. |
|
| 497 | 495 | |
| 498 | 496 | private $dom; |
| 499 | 497 | private $nodes = []; |
@@ -1142,8 +1140,8 @@ discard block |
||
| 1142 | 1140 | const MODE_EXPLICIT = 1; |
| 1143 | 1141 | |
| 1144 | 1142 | private $config = [ self::ID => '', |
| 1145 | - self::URI => '', |
|
| 1146 | - self::MODE => self::MODE_EXPLICIT ]; |
|
| 1143 | + self::URI => '', |
|
| 1144 | + self::MODE => self::MODE_EXPLICIT ]; |
|
| 1147 | 1145 | |
| 1148 | 1146 | public function __construct($id, $uri, $mode = 1) |
| 1149 | 1147 | { |