Conditions | 2 |
Paths | 5 |
Total Lines | 30 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
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->email, $payload->name); |
||
29 | |||
30 | $user = $this->service->getUserSession($this->service->createUser( |
||
31 | $people, |
||
32 | $payload->email, |
||
33 | $payload->password |
||
34 | )); |
||
35 | |||
36 | return new JsonResponse([ |
||
37 | 'response' => [ |
||
38 | 'data' => $user, |
||
39 | 'count' => 1, |
||
40 | 'success' => true, |
||
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