Completed
Pull Request — master (#51)
by Günter
02:20
created
src/AfriCC/EPP/Frame/Response/Result.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         return $this->extValues;
70 70
     }
71 71
 
72
+    /**
73
+     * @param DOMElement $node
74
+     */
72 75
     protected function parseResultNode($node)
73 76
     {
74 77
         foreach ($node->childNodes as $each) {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 continue;
77 77
             }
78 78
 
79
-            switch($each->localName) {
79
+            switch ($each->localName) {
80 80
                 case 'msg':
81 81
                     $this->msg = $each->nodeValue;
82 82
                     if ($each->hasAttribute('lang')) {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             // if node only has a type attribute lets distinguish them directly
109 109
             // and then ignore the attribtue
110 110
             if ($each->hasAttribute('type')) {
111
-                $key = $each->localName . '@' . $each->getAttribute('type');
111
+                $key = $each->localName.'@'.$each->getAttribute('type');
112 112
                 $ignore_attributes = true;
113 113
             } else {
114 114
                 $key = $each->localName;
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
                         }
152 152
 
153 153
                         if ($insert_key) {
154
-                            if (isset($tmp['@' . $key][$attr->nodeName]) && !is_array($tmp['@' . $key][$attr->nodeName])) {
155
-                                $tmp['@' . $key][$attr->nodeName] = [$tmp['@' . $key][$attr->nodeName]];
154
+                            if (isset($tmp['@'.$key][$attr->nodeName]) && !is_array($tmp['@'.$key][$attr->nodeName])) {
155
+                                $tmp['@'.$key][$attr->nodeName] = [$tmp['@'.$key][$attr->nodeName]];
156 156
                             }
157
-                            $tmp['@' . $key][$attr->nodeName][$insert_key] = $attr->nodeValue;
157
+                            $tmp['@'.$key][$attr->nodeName][$insert_key] = $attr->nodeValue;
158 158
                         } else {
159
-                            $tmp['@' . $key][$attr->nodeName] = $attr->nodeValue;
159
+                            $tmp['@'.$key][$attr->nodeName] = $attr->nodeValue;
160 160
                         }
161 161
                     }
162 162
                 }
Please login to merge, or discard this patch.