Passed
Push — master ( 0a327e...dac954 )
by y
07:23
created
src/Base/Data.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@  discard block
 block discarded – undo
49 49
     public function __construct ($caller, array $data = []) {
50 50
         if ($caller instanceof self) {
51 51
             $this->api = $caller->api;
52
-        }
53
-        else {
52
+        } else {
54 53
             assert($caller instanceof Api);
55 54
             /** @var Api $caller */
56 55
             $this->api = $caller;
@@ -251,8 +250,7 @@  discard block
 block discarded – undo
251 250
                 $value = array_map(function($each) use ($class) {
252 251
                     return $this->_hydrate($class[0], $each);
253 252
                 }, $value);
254
-            }
255
-            elseif (isset($value)) {
253
+            } elseif (isset($value)) {
256 254
                 $value = $this->_hydrate($class, $value);
257 255
             }
258 256
         }
Please login to merge, or discard this patch.