@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * @param $name |
| 75 | 75 | * @return mixed |
| 76 | 76 | */ |
| 77 | - /* private function handleBase64($value, $uploads_format_candidate, $row_assign, $name) |
|
| 77 | + /* private function handleBase64($value, $uploads_format_candidate, $row_assign, $name) |
|
| 78 | 78 | { |
| 79 | 79 | $filedata = base64_decode($value); |
| 80 | 80 | $f = finfo_open(); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | */ |
| 227 | 227 | private function filterRows($data, $parameters, $posts, $table, $type_except) |
| 228 | 228 | { |
| 229 | - $data->where(function ($w) use ($parameters, $posts, $table, $type_except) { |
|
| 229 | + $data->where(function($w) use ($parameters, $posts, $table, $type_except) { |
|
| 230 | 230 | foreach ($parameters as $param) { |
| 231 | 231 | $name = $param['name']; |
| 232 | 232 | $type = $param['type']; |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | $row->$k = asset($v); |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | - if (! in_array($k, $responses_fields)) { |
|
| 321 | + if (!in_array($k, $responses_fields)) { |
|
| 322 | 322 | unset($row[$k]); |
| 323 | 323 | } |
| 324 | 324 | } |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | $rows->$k = asset($v); |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | - if (! in_array($k, $responses_fields)) { |
|
| 384 | + if (!in_array($k, $responses_fields)) { |
|
| 385 | 385 | unset($row[$k]); |
| 386 | 386 | } |
| 387 | 387 | } |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | $subquery = $resp['subquery']; |
| 404 | 404 | $used = intval($resp['used']); |
| 405 | 405 | |
| 406 | - if ($used == 0 && ! DbInspector::isForeignKey($name)) { |
|
| 406 | + if ($used == 0 && !DbInspector::isForeignKey($name)) { |
|
| 407 | 407 | continue; |
| 408 | 408 | } |
| 409 | 409 | |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | */ |
| 459 | 459 | private function applyLike($data, $search_in, $value) |
| 460 | 460 | { |
| 461 | - $data->where(function ($w) use ($search_in, $value) { |
|
| 461 | + $data->where(function($w) use ($search_in, $value) { |
|
| 462 | 462 | foreach ($search_in as $k => $field) { |
| 463 | 463 | if ($k == 0) { |
| 464 | 464 | $w->where($field, "like", "%$value%"); |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | private function validateMethodType($row_api, $result, $debugModeMessage, $posts) |
| 507 | 507 | { |
| 508 | 508 | $method_type = $row_api->method_type; |
| 509 | - if (! $method_type || ! Request::isMethod($method_type)) { |
|
| 509 | + if (!$method_type || !Request::isMethod($method_type)) { |
|
| 510 | 510 | $result['api_status'] = 0; |
| 511 | 511 | $result['api_message'] = "The request method is not allowed !"; |
| 512 | 512 | |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | */ |
| 545 | 545 | private function checkApiDefined($row_api, $result, $debugModeMessage, $posts) |
| 546 | 546 | { |
| 547 | - if (! $row_api) { |
|
| 547 | + if (!$row_api) { |
|
| 548 | 548 | $result['api_status'] = 0; |
| 549 | 549 | $result['api_message'] = 'Sorry this API is no longer available, maybe has changed by admin, or please make sure api url is correct.'; |
| 550 | 550 | |
@@ -611,11 +611,11 @@ discard block |
||
| 611 | 611 | $value = $param['config']; |
| 612 | 612 | } |
| 613 | 613 | |
| 614 | - if ($required && $type == 'password' && ! Hash::check($value, $row->{$name})) { |
|
| 614 | + if ($required && $type == 'password' && !Hash::check($value, $row->{$name})) { |
|
| 615 | 615 | $this->passwordError($result, $debugModeMessage, $posts); |
| 616 | 616 | } |
| 617 | 617 | |
| 618 | - if (! $required && $used && $value && ! Hash::check($value, $row->{$name})) { |
|
| 618 | + if (!$required && $used && $value && !Hash::check($value, $row->{$name})) { |
|
| 619 | 619 | $this->passwordError($result, $debugModeMessage, $posts); |
| 620 | 620 | } |
| 621 | 621 | } |