Completed
Pull Request — master (#11)
by Christopher
03:15
created
src/POData/UriProcessor/XML2Array.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * Convert an XML to Array.
16 16
      *
17
-     * @param string|DOMDocument $input_xml
17
+     * @param string $input_xml
18 18
      *
19 19
      * @return array
20 20
      *
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 class XML2Array
5 5
 {
6
- /**
6
+    /**
7 7
      * @var string
8 8
      */
9 9
     private static $encoding = 'UTF-8';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                     throw new \Exception();
31 31
                 }
32 32
             } catch (\Exception $ex) {
33
-                throw new \Exception('[XML2Array] Error parsing the XML string.'.PHP_EOL.$ex->getMessage());
33
+                throw new \Exception('[XML2Array] Error parsing the XML string.' . PHP_EOL . $ex->getMessage());
34 34
             }
35 35
         } elseif (is_object($input_xml)) {
36 36
             if (get_class($input_xml) != 'DOMDocument') {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             throw new \Exception('[XML2Array] Invalid input');
42 42
         }
43 43
         $array[$xml->documentElement->tagName] = self::convert($xml->documentElement);
44
-        self::$xml = null;    // clear the xml node in the class for 2nd time use.
44
+        self::$xml = null; // clear the xml node in the class for 2nd time use.
45 45
         return $array;
46 46
     }
47 47
     /**
Please login to merge, or discard this patch.