| Conditions | 2 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __invoke(Request $request) |
||
| 22 | { |
||
| 23 | |||
| 24 | try { |
||
| 25 | $payload = json_decode($request->getContent()); |
||
| 26 | return new JsonResponse($this->hydratorService->result( |
||
| 27 | $this->service->createUser( |
||
| 28 | $payload->people, |
||
| 29 | $payload->username, |
||
| 30 | $payload->password |
||
| 31 | ) |
||
| 32 | )); |
||
| 33 | } catch (\Exception $e) { |
||
| 34 | |||
| 35 | return new JsonResponse([ |
||
| 36 | 'response' => [ |
||
| 37 | 'data' => [], |
||
| 38 | 'count' => 0, |
||
| 39 | 'error' => $e->getMessage(), |
||
| 40 | 'success' => false, |
||
| 41 | ], |
||
| 42 | ], 500); |
||
| 43 | } |
||
| 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