Completed
Push — master ( 24d3ae...1f5a99 )
by Daniele
02:46
created
source/FluidXml.php 1 patch
Indentation   +12 added lines, -14 removed lines patch added patch discarded remove patch
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
 class FluidXml implements FluidInterface
134 134
 {
135 135
         use NewableTrait,
136
-            ReservedCallTrait,          // For compatibility with PHP 5.6.
137
-            ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
136
+                ReservedCallTrait,          // For compatibility with PHP 5.6.
137
+                ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
138 138
 
139 139
         const ROOT_NODE = 'doc';
140 140
 
@@ -168,9 +168,9 @@  discard block
 block discarded – undo
168 168
                 $doc = $this->document;
169 169
 
170 170
                 $defaults = [ 'root'       => self::ROOT_NODE,
171
-                              'version'    => '1.0',
172
-                              'encoding'   => 'UTF-8',
173
-                              'stylesheet' => null ];
171
+                                'version'    => '1.0',
172
+                                'encoding'   => 'UTF-8',
173
+                                'stylesheet' => null ];
174 174
 
175 175
                 if (\is_string($root)) {
176 176
                         // The root option can be specified as first argument
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
 
197 197
                 if (! empty($opts['stylesheet'])) {
198 198
                         $attrs = 'type="text/xsl" '
199
-                               . "encoding=\"{$opts['encoding']}\" "
200
-                               . 'indent="yes" '
201
-                               . "href=\"{$opts['stylesheet']}\"";
199
+                                . "encoding=\"{$opts['encoding']}\" "
200
+                                . 'indent="yes" '
201
+                                . "href=\"{$opts['stylesheet']}\"";
202 202
                         $stylesheet = new \DOMProcessingInstruction('xml-stylesheet', $attrs);
203 203
 
204 204
                         $doc->dom->insertBefore($stylesheet, $doc->dom->documentElement);
@@ -447,8 +447,8 @@  discard block
 block discarded – undo
447 447
         const MODE_EXPLICIT = 1;
448 448
 
449 449
         private $config = [ self::ID   => '',
450
-                            self::URI  => '',
451
-                            self::MODE => self::MODE_EXPLICIT ];
450
+                                self::URI  => '',
451
+                                self::MODE => self::MODE_EXPLICIT ];
452 452
 
453 453
         public function __construct($id, $uri, $mode = 1)
454 454
         {
@@ -529,7 +529,6 @@  discard block
 block discarded – undo
529 529
          *
530 530
          * ```php
531 531
          * $xml = fluidxml();
532
-
533 532
          * $xml->query("/doc/book[@id='123']");
534 533
          *
535 534
          * // Relative queries are valid.
@@ -549,7 +548,6 @@  discard block
 block discarded – undo
549 548
          *
550 549
          * ```php
551 550
          * $xml = fluidxml();
552
-
553 551
          * $xml->appendChild('title', 'The Theory Of Everything');
554 552
          * $xml->appendChild([ 'author' => 'S. Hawking' ]);
555 553
          *
@@ -664,8 +662,8 @@  discard block
 block discarded – undo
664 662
 class FluidContext implements FluidInterface, \ArrayAccess, \Iterator
665 663
 {
666 664
         use NewableTrait,
667
-            ReservedCallTrait,          // For compatibility with PHP 5.6.
668
-            ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
665
+                ReservedCallTrait,          // For compatibility with PHP 5.6.
666
+                ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
669 667
 
670 668
         private $document;
671 669
         private $nodes = [];
Please login to merge, or discard this patch.