Passed
Pull Request — master (#1135)
by Iman
04:21
created
src/Modules/ApiGeneratorModule/AdminApiGeneratorController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
             if (strtolower($api->method_type) == 'get' && $httpbuilder) {
79 79
                 $httpbuilder = "?".http_build_query($httpbuilder);
80
-            }else{
80
+            } else {
81 81
                 $httpbuilder = '';
82 82
             }
83 83
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $type_field = DbInspector::getFieldTypes($table, $ro);
201 201
             $new_result[] = ['name' => $ro, 'type' => $this->getFieldType($ro, $type_field)];
202 202
 
203
-            if (!in_array($type, ['list', 'detail']) || !starts_with($ro, 'id_') ) {
203
+            if (!in_array($type, ['list', 'detail']) || !starts_with($ro, 'id_')) {
204 204
                 continue;
205 205
             }
206 206
             $table2 = substr($ro, 3);
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     {
272 272
         $json = [];
273 273
         for ($i = 0, $_count = count($params_name); $i <= $_count; $i++) {
274
-            if (! $params_name[$i]) {
274
+            if (!$params_name[$i]) {
275 275
                 continue;
276 276
             }
277 277
             $json[] = [
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $json = [];
299 299
         for ($i = 0, $_count = count($responses_name); $i <= $_count; $i++) {
300
-            if (! $responses_name[$i]) {
300
+            if (!$responses_name[$i]) {
301 301
                 continue;
302 302
             }
303 303
             $json[] = [
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/ScaffoldingParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
             } elseif (strpos($s, 'callback') !== false) {
116 116
                 $colInnerItem['callback'] = self::parseCallback($s);
117 117
             } else {
118
-                $s = str_replace("'", '',$s);
118
+                $s = str_replace("'", '', $s);
119 119
                 $sSplit = explode('=>', $s);
120 120
                 $colInnerItem[$sSplit[0]] = $sSplit[1];
121 121
             }
Please login to merge, or discard this patch.