Passed
Push — master ( 48d2f8...bf4e5d )
by Бабичев
02:22
created
src/XMLReader/XMLReader.php 2 patches
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -270,12 +270,10 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.