Conditions | 2 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | #[Route('/print/{id}/done', name: "print_done", methods: ["PUT"])] |
||
24 | #[Security("is_granted('ROLE_ADMIN') or is_granted('ROLE_CLIENT')")] |
||
25 | public function makePrintDone(Spool $spool): JsonResponse |
||
26 | { |
||
27 | try { |
||
28 | $spool = $this->printService->makePrintDone($spool); |
||
29 | return new JsonResponse($this->hydratorService->item(Spool::class, $spool->getId(), "spool_item:write"), Response::HTTP_OK); |
||
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