| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | protected function addMethods(PhpClass $class, ActionSchema $action) { |
||
|
1 ignored issue
–
show
|
|||
| 10 | $this->generateGetPayloadMethods($class, $this->twig->render('getPayloadMethods-delete.twig')); |
||
| 11 | $this->generateNotFound($class); |
||
| 12 | |||
| 13 | // method: deleted(Request $request, PayloadInterface $payload) |
||
|
1 ignored issue
–
show
|
|||
| 14 | $deleted = $this->generatePayloadMethod('deleted', $this->twig->render('model-deleted.twig')); |
||
| 15 | $class->setMethod($deleted); |
||
| 16 | |||
| 17 | // method: notDeleted(Request $request, PayloadInterface $payload) |
||
|
1 ignored issue
–
show
|
|||
| 18 | $notDeleted = $this->generatePayloadMethod('notDeleted', $this->twig->render('model-notDeleted.twig')); |
||
| 19 | $class->setMethod($notDeleted); |
||
| 20 | } |
||
| 21 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.