Passed
Branch master (e607fe)
by Daniele
03:38
created
source/FluidXml.php 1 patch
Indentation   +11 added lines, -13 removed lines patch added patch discarded remove patch
@@ -136,7 +136,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         {
Please login to merge, or discard this patch.