Completed
Pull Request — master (#3)
by
unknown
02:16
created
src/XmlToArray.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Vyuldashev\XmlToArray;
6 6
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $sameNames = false;
60 60
         $result = $this->convertAttributes($element->attributes);
61 61
 
62
-        if( count($element->childNodes)  > 1){
62
+        if (count($element->childNodes) > 1) {
63 63
             $childNodeNames = [];
64 64
             foreach ($element->childNodes as $key => $node) {
65 65
                 $childNodeNames[] = $node->nodeName;
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
             }
81 81
             if ($node instanceof DOMElement) {
82 82
 
83
-                if( $sameNames ) {
84
-                    $indexName = $node->nodeName.($key + 1) ;
83
+                if ($sameNames) {
84
+                    $indexName = $node->nodeName.($key + 1);
85 85
                     $result[$node->nodeName][$key] = $this->convertDomElement($node);
86 86
                 } else {
87 87
                     $result[$node->nodeName] = $this->convertDomElement($node);
Please login to merge, or discard this patch.