Passed
Pull Request — master (#1135)
by Iman
05:17
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/controllers/FormValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
         $validator = Validator::make(request()->all(), $rules);
21 21
 
22
-        if (! $validator->fails()) {
22
+        if (!$validator->fails()) {
23 23
             return null;
24 24
         }
25 25
 
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
         $rules = [];
38 38
         foreach ($form as $formInput) {
39 39
             $name = $formInput['name'];
40
-            if (! $name) {
40
+            if (!$name) {
41 41
                 continue;
42 42
             }
43 43
 
44 44
             $ai = [];
45
-            if ($formInput['required'] && ! Request::hasFile($name)) {
45
+            if ($formInput['required'] && !Request::hasFile($name)) {
46 46
                 $ai[] = 'required';
47 47
             }
48 48
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $exp = explode('|', $formInput['validation']);
73 73
 
74
-        $uniqueRules = array_filter($exp, function($item){
74
+        $uniqueRules = array_filter($exp, function($item) {
75 75
             return starts_with($item, 'unique');
76 76
         });
77 77
 
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
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
                 continue;
120 120
             }
121 121
 
122
-            $s = str_replace("'", '',$s);
122
+            $s = str_replace("'", '', $s);
123 123
             list($key, $val) = explode('=>', $s);
124 124
             $colInnerItem[$key] = $val;
125 125
 
Please login to merge, or discard this patch.