| Conditions | 2 |
| Paths | 6 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __invoke(Request $request): JsonResponse |
||
| 23 | { |
||
| 24 | try { |
||
| 25 | $json = json_decode($request->getContent(), true); |
||
| 26 | $device = $this->manager->getRepository(People::class)->findOneBy(['device' => $request->headers->get('device')]); |
||
| 27 | $people = $this->manager->getRepository(People::class)->find(preg_replace("/[^0-9]/", "", $json['people'])); |
||
| 28 | $configs = $this->configService->discoveryMainConfigs($people, $device); |
||
| 29 | return new JsonResponse($this->hydratorService->collectionData($configs, Config::class, 'config:read')); |
||
| 30 | } catch (Exception $e) { |
||
| 31 | return new JsonResponse($this->hydratorService->error($e)); |
||
| 32 | } |
||
| 35 |
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