Completed
Push — master ( 3f00ec...1044f8 )
by Daniele
02:34
created
source/FluidXml.php 1 patch
Indentation   +14 added lines, -16 removed lines patch added patch discarded remove patch
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
 class FluidXml implements FluidInterface
139 139
 {
140 140
         use NewableTrait,
141
-            SaveableTrait,
142
-            ReservedCallTrait,          // For compatibility with PHP 5.6.
143
-            ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
141
+                SaveableTrait,
142
+                ReservedCallTrait,          // For compatibility with PHP 5.6.
143
+                ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
144 144
 
145 145
         const ROOT_NODE = 'doc';
146 146
 
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
         public function __construct($root = null, $options = [])
166 166
         {
167 167
                 $defaults = [ 'root'       => self::ROOT_NODE,
168
-                              'version'    => '1.0',
169
-                              'encoding'   => 'UTF-8',
170
-                              'stylesheet' => null ];
168
+                                'version'    => '1.0',
169
+                                'encoding'   => 'UTF-8',
170
+                                'stylesheet' => null ];
171 171
 
172 172
                 if (\is_string($root)) {
173 173
                         // The root option can be specified as first argument
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
 
199 199
                 if (! empty($opts['stylesheet'])) {
200 200
                         $attrs = 'type="text/xsl" '
201
-                               . "encoding=\"{$opts['encoding']}\" "
202
-                               . 'indent="yes" '
203
-                               . "href=\"{$opts['stylesheet']}\"";
201
+                                . "encoding=\"{$opts['encoding']}\" "
202
+                                . 'indent="yes" '
203
+                                . "href=\"{$opts['stylesheet']}\"";
204 204
                         $stylesheet = new \DOMProcessingInstruction('xml-stylesheet', $attrs);
205 205
 
206 206
                         $doc->dom->insertBefore($stylesheet, $doc->dom->documentElement);
@@ -445,8 +445,8 @@  discard block
 block discarded – undo
445 445
         const MODE_EXPLICIT = 1;
446 446
 
447 447
         private $config = [ self::ID   => '',
448
-                            self::URI  => '',
449
-                            self::MODE => self::MODE_EXPLICIT ];
448
+                                self::URI  => '',
449
+                                self::MODE => self::MODE_EXPLICIT ];
450 450
 
451 451
         public function __construct($id, $uri, $mode = 1)
452 452
         {
@@ -527,7 +527,6 @@  discard block
 block discarded – undo
527 527
          *
528 528
          * ```php
529 529
          * $xml = fluidxml();
530
-
531 530
          * $xml->query("/doc/book[@id='123']");
532 531
          *
533 532
          * // Relative queries are valid.
@@ -547,7 +546,6 @@  discard block
 block discarded – undo
547 546
          *
548 547
          * ```php
549 548
          * $xml = fluidxml();
550
-
551 549
          * $xml->appendChild('title', 'The Theory Of Everything');
552 550
          * $xml->appendChild([ 'author' => 'S. Hawking' ]);
553 551
          *
@@ -1075,9 +1073,9 @@  discard block
 block discarded – undo
1075 1073
 class FluidContext implements FluidInterface, \ArrayAccess, \Iterator
1076 1074
 {
1077 1075
         use NewableTrait,
1078
-            SaveableTrait,
1079
-            ReservedCallTrait,          // For compatibility with PHP 5.6.
1080
-            ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
1076
+                SaveableTrait,
1077
+                ReservedCallTrait,          // For compatibility with PHP 5.6.
1078
+                ReservedCallStaticTrait;    // For compatibility with PHP 5.6.
1081 1079
 
1082 1080
         private $document;
1083 1081
         private $handler;
Please login to merge, or discard this patch.