@@ -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[] = [ |
@@ -115,7 +115,7 @@ |
||
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 | } |