| Conditions | 4 |
| Paths | 8 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public static function response(ResponseModel $response) |
||
| 21 | { |
||
| 22 | $header = array( |
||
| 23 | 'Content-Type' => 'application/json; charset=UTF-8', |
||
| 24 | 'charset' => 'utf-8' |
||
| 25 | ); |
||
| 26 | |||
| 27 | $responseParams = []; |
||
| 28 | if ($response->getData()->count()) { |
||
| 29 | $responseParams = Arr::add($responseParams, 'results', $response->getData()); |
||
| 30 | } |
||
| 31 | if (!is_null($response->getMessage())) { |
||
| 32 | $responseParams = Arr::add($responseParams, 'message', $response->getMessage()); |
||
| 33 | } |
||
| 34 | if (count($response->getError())) { |
||
| 35 | $responseParams = Arr::add($responseParams, 'errors', $response->getError()); |
||
| 36 | } |
||
| 37 | return response()->json($responseParams, $response->getstatusCode(), $header, JSON_UNESCAPED_UNICODE); |
||
| 38 | } |
||
| 41 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths