Conditions | 2 |
Paths | 3 |
Total Lines | 24 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __invoke(User $data) |
||
22 | { |
||
23 | |||
24 | try { |
||
25 | |||
26 | $user = $this->service->changeApiKey($data); |
||
27 | |||
28 | return new JsonResponse( |
||
29 | $this->hydratorService->item( |
||
30 | User::class, |
||
31 | $user->getId(), |
||
32 | "user_read" |
||
33 | ) |
||
34 | ); |
||
35 | } catch (\Exception $e) { |
||
36 | |||
37 | return new JsonResponse([ |
||
38 | 'response' => [ |
||
39 | 'data' => [], |
||
40 | 'count' => 0, |
||
41 | 'error' => $e->getMessage(), |
||
42 | 'success' => false, |
||
43 | ], |
||
44 | ], 500); |
||
45 | } |
||
48 |
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