Completed
Branch master (b6657b)
by Rafael
03:02
created
src/Array2XML.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $xml = self::getXMLRoot();
65 65
         $xml->appendChild(self::convert($node_name, $arr));
66 66
 
67
-        self::$xml = null;    // clear the xml node in the class for 2nd time use.
67
+        self::$xml = null; // clear the xml node in the class for 2nd time use.
68 68
         return $xml;
69 69
     }
70 70
 
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
             // else check if its directly stored as string
101 101
             if (isset($arr['@value'])) {
102 102
                 $node->appendChild($xml->createTextNode(self::bool2str($arr['@value'])));
103
-                unset($arr['@value']);    //remove the key from the array once done.
103
+                unset($arr['@value']); //remove the key from the array once done.
104 104
                 //return from recursion, as a note with value cannot have child nodes.
105 105
                 return $node;
106 106
             } else {
107 107
                 if (isset($arr['@cdata'])) {
108 108
                     $node->appendChild($xml->createCDATASection(self::bool2str($arr['@cdata'])));
109
-                    unset($arr['@cdata']);    //remove the key from the array once done.
109
+                    unset($arr['@cdata']); //remove the key from the array once done.
110 110
                     //return from recursion, as a note with cdata cannot have child nodes.
111 111
                     return $node;
112 112
                 }
Please login to merge, or discard this patch.
src/XML2Array.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             $xml = self::$xml = $input_xml;
78 78
         }
79 79
         $array[$xml->documentElement->tagName] = self::convert($xml->documentElement);
80
-        self::$xml = null;    // clear the xml node in the class for 2nd time use.
80
+        self::$xml = null; // clear the xml node in the class for 2nd time use.
81 81
         return $array;
82 82
     }
83 83
 
Please login to merge, or discard this patch.