Passed
Push — master ( 4a70a7...ec1703 )
by Iman
04:09
created
src/controllers/ApiController/ExecuteApi.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@
 block discarded – undo
81 81
             $result = [];
82 82
             if ($actionType == 'list') {
83 83
                 $result = $this->handleListAction($table, $orderby, $data, $responses_fields);
84
-            }elseif ($actionType == 'detail') {
84
+            } elseif ($actionType == 'detail') {
85 85
                 $result = $this->handleDetailsAction($data, $parameters, $posts, $responses_fields);
86
-            }elseif ($actionType == 'delete') {
86
+            } elseif ($actionType == 'delete') {
87 87
                 $result = $this->handleDeleteAction($table, $data);
88 88
             }
89
-        }elseif (in_array($actionType, ['save_add', 'save_edit'])) {
89
+        } elseif (in_array($actionType, ['save_add', 'save_edit'])) {
90 90
             $rowAssign = array_filter($input_validator, function ($column) use ($table) {
91 91
                 return Schema::hasColumn($table, $column);
92 92
             }, ARRAY_FILTER_USE_KEY);
Please login to merge, or discard this patch.