Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | public function __invoke(RequestInterface $request, ResponseInterface $response) |
||
48 | { |
||
49 | return new JsonResponse(['locations' => array_map(function(LocationDto $locationDto) { |
||
50 | return [ |
||
51 | 'name' => $locationDto->getName(), |
||
52 | 'unLocode' => $locationDto->getUnLocode() |
||
53 | ]; |
||
54 | }, $this->bookingService->listShippingLocations())]); |
||
55 | } |
||
56 | } |
||
57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.