Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function notFoundHttpException(NotFoundHttpException $exception) |
||
15 | { |
||
16 | $statuCode = $exception->getStatusCode(); |
||
17 | $error = [[ |
||
18 | 'status' => $statuCode, |
||
19 | 'code' => $this->getCode('not_found_http'), |
||
20 | 'source' => ['pointer' => $exception->getFile().':'.$exception->getLine()], |
||
21 | 'title' => $this->getDescription($exception), |
||
22 | 'detail' => $this->getNotFoundMessage($exception), |
||
23 | ]]; |
||
24 | |||
25 | $this->jsonApiResponse->setStatus($statuCode); |
||
26 | $this->jsonApiResponse->setErrors($error); |
||
27 | } |
||
46 |
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