Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | protected function addMethods(PhpClass $class, ActionSchema $action) { |
||
|
|||
23 | // method: run(Request $request, $data = null) |
||
24 | $class->addUseStatement($this->model->getNamespace() . '\\' . $this->model->getPhpName()); |
||
25 | $class->setMethod($this->generateRunMethod($this->twig->render('dump-to-one-relationship.twig', [ |
||
26 | 'class' => $this->model->getPhpName(), |
||
27 | 'related' => $this->foreign->getCamelCaseName() |
||
28 | ]))); |
||
29 | } |
||
30 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.