@@ -77,7 +77,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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[] = [ |
@@ -19,7 +19,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -119,7 +119,7 @@ |
||
| 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 | |