Conditions | 2 |
Paths | 5 |
Total Lines | 30 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function __invoke(Request $request) |
||
24 | { |
||
25 | |||
26 | try { |
||
27 | $payload = json_decode($request->getContent()); |
||
28 | $people = $this->service->discoveryPeople($payload->username, $payload->firstName, $payload->lastName); |
||
29 | |||
30 | $user = $this->service->createUser( |
||
31 | $people, |
||
32 | $payload->username, |
||
33 | $payload->password |
||
34 | ); |
||
35 | |||
36 | return new JsonResponse( |
||
37 | $this->hydratorService->item( |
||
38 | User::class, |
||
39 | $user->getId(), |
||
40 | "user:read" |
||
41 | ) |
||
42 | ); |
||
43 | } catch (\Exception $e) { |
||
44 | |||
45 | return new JsonResponse([ |
||
46 | 'response' => [ |
||
47 | 'data' => [], |
||
48 | 'count' => 0, |
||
49 | 'error' => $e->getMessage(), |
||
50 | 'success' => false, |
||
51 | ], |
||
52 | ], 500); |
||
53 | } |
||
56 |
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