Passed
Branch main (0938df)
by Dylan
02:30
created
src/models/Model.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,10 +81,14 @@
 block discarded – undo
81 81
         $service = $this->getService();
82 82
 
83 83
         if ($this->exists()) {
84
-            if (!method_exists($service, 'update')) return $this;
84
+            if (!method_exists($service, 'update')) {
85
+                return $this;
86
+            }
85 87
             return $service->update($this->ID, $this->toArray());
86 88
         } else {
87
-            if (!method_exists($service, 'create')) return $this;
89
+            if (!method_exists($service, 'create')) {
90
+                return $this;
91
+            }
88 92
             return $service->create($this->toArray());
89 93
         }
90 94
     }
Please login to merge, or discard this patch.