Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 3 | protected function generateResponse(LazyResponseInterface $controllerResult): Response |
|
27 | { |
||
28 | 3 | return new JsonResponse( |
|
29 | 3 | $this->serializer->serialize($controllerResult->getData(), 'json'), |
|
30 | 3 | $controllerResult->getStatusCode(), |
|
31 | 3 | $controllerResult->getHeaders(), |
|
32 | 3 | true |
|
33 | ); |
||
41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.