Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function addMethods(PhpClass $class, ActionSchema $action) { |
||
|
|||
16 | $serializer = new PhpClass($this->serializer); |
||
17 | |||
18 | // method: run(Request $request, $data = null) : JsonResponse |
||
19 | $class->addUseStatement($serializer->getQualifiedName()); |
||
20 | $class->setMethod($this->generateRunMethod($this->twig->render('api-run.twig', [ |
||
21 | 'serializer' => $serializer->getName() |
||
22 | ]))); |
||
23 | } |
||
24 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.