Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
40 | { |
||
41 | return new JsonResponse(['cargos' => array_map(function(CargoRoutingDto $cargoRoutingDto) { |
||
42 | return $cargoRoutingDto->getArrayCopy(); |
||
43 | }, $this->bookingService->listAllCargos() )]); |
||
44 | } |
||
45 | } |
||
46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.