@@ -68,8 +68,7 @@ discard block |
||
68 | 68 | if ($properties) |
69 | 69 | { |
70 | 70 | $output['@' . $property] = is_array($properties) ? |
71 | - $properties : |
|
72 | - $this->_asArray($properties); |
|
71 | + $properties : $this->_asArray($properties); |
|
73 | 72 | |
74 | 73 | if (empty($output['@' . $property])) |
75 | 74 | { |
@@ -178,8 +177,7 @@ discard block |
||
178 | 177 | $data = $this->_simpleXml($mixed); |
179 | 178 | |
180 | 179 | return $data ? |
181 | - $this->_asArray($data) : |
|
182 | - null; |
|
180 | + $this->_asArray($data) : null; |
|
183 | 181 | } |
184 | 182 | |
185 | 183 | /** |
@@ -270,12 +270,10 @@ |
||
270 | 270 | if ($key === '@attributes') |
271 | 271 | { |
272 | 272 | $this->addAttributes($element, $storage); |
273 | - } |
|
274 | - else if ($key === '@value' && \is_string($storage)) |
|
273 | + } else if ($key === '@value' && \is_string($storage)) |
|
275 | 274 | { |
276 | 275 | $element->nodeValue = \htmlspecialchars($storage); |
277 | - } |
|
278 | - else |
|
276 | + } else |
|
279 | 277 | { |
280 | 278 | $this->addNode($element, $key, $storage); |
281 | 279 | } |