Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function generate(PhpClass $class, Table $model, Table $foreign, ForeignKey $fk) { |
||
2 ignored issues
–
show
|
|||
17 | // add use statements |
||
18 | $this->ensureBasicSetup($class); |
||
19 | |||
20 | // method: configureParams(OptionsResolver $resolver) |
||
21 | $this->addConfigureParamsMethod($class, $this->twig->render('relationship-configureParams.twig')); |
||
22 | |||
23 | // method: run(Request $request) : Response |
||
24 | $class->addUseStatement('Symfony\\Component\\HttpFoundation\\Request'); |
||
25 | $class->addUseStatement('Symfony\\Component\\HttpFoundation\\Response'); |
||
26 | $class->setMethod($this->generateRunMethod($this->twig->render('to-one-read-run.twig', [ |
||
27 | 'model' => $model->getCamelCaseName(), |
||
28 | 'class' => $model->getPhpName() |
||
29 | ]))); |
||
30 | |||
31 | return $class; |
||
32 | } |
||
33 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.