| Conditions | 2 |
| Paths | 5 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function __invoke(Request $request): JsonResponse |
||
| 28 | { |
||
| 29 | try { |
||
| 30 | $json = json_decode($request->getContent(), true); |
||
| 31 | $people = $this->manager->getRepository(People::class)->find($json['people']); |
||
| 32 | $config = $this->configService->addConfig($people, $json['configKey'], $json['configValue']); |
||
| 33 | return new JsonResponse($this->hydratorService->item(Config::class, $config->getId(), "config:read"), Response::HTTP_OK); |
||
| 34 | } catch (Exception $e) { |
||
| 35 | return new JsonResponse($this->hydratorService->error($e)); |
||
| 36 | } |
||
| 39 |
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