Passed
Branch master (9022d2)
by Rafael
03:34
created
src/XML2Array.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     /**
85 85
      * Convert an Array to XML
86 86
      *
87
-     * @param mixed $node - XML as a string or as an object of DOMDocument
87
+     * @param \DOMElement $node - XML as a string or as an object of DOMDocument
88 88
      *
89 89
      * @return mixed
90 90
      */
Please login to merge, or discard this 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.
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.