Passed
Push — master ( 378dcb...085bd4 )
by Maike
05:11
created
lib/support/Model.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@
 block discarded – undo
43 43
      */
44 44
     public static function toList($data)
45 45
     {
46
-        if (!($data instanceof self)) throw new \Exception(" It's not a model.");
46
+        if (!($data instanceof self)) {
47
+         throw new \Exception(" It's not a model.");
48
+        }
47 49
 
48 50
         $data = array_map(function ($object) {
49 51
             return $object->toArray();
Please login to merge, or discard this patch.