@@ -108,8 +108,8 @@ |
||
108 | 108 | { |
109 | 109 | if (!$item->count()) |
110 | 110 | { |
111 | - $output[$key] = $this->_asArray($item); |
|
112 | - continue; |
|
111 | + $output[$key] = $this->_asArray($item); |
|
112 | + continue; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | Arr::initOrPush( |
@@ -214,12 +214,10 @@ |
||
214 | 214 | if ($key === '@attributes') |
215 | 215 | { |
216 | 216 | $this->addAttributes($element, $storage); |
217 | - } |
|
218 | - else if ($key === '@value' && is_string($storage)) |
|
217 | + } else if ($key === '@value' && is_string($storage)) |
|
219 | 218 | { |
220 | 219 | $element->nodeValue = htmlspecialchars($storage); |
221 | - } |
|
222 | - else |
|
220 | + } else |
|
223 | 221 | { |
224 | 222 | $this->addNode($element, $key, $storage); |
225 | 223 | } |