Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function __invoke(): Response |
||
39 | { |
||
40 | /** |
||
41 | * @todo manage this controller to give company for the current user |
||
42 | */ |
||
43 | $companies = $this->readCompany->findAll(); |
||
44 | |||
45 | if (empty($companies)) { |
||
46 | return $this->jsonResponse->response('No data found', Response::HTTP_ACCEPTED); |
||
47 | } |
||
48 | |||
49 | return $this->jsonResponse->response($this->serialize($companies)); |
||
50 | } |
||
52 |
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