| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function generate(ActionSchema $action) { |
||
| 15 | $class = $this->generateClass($action); |
||
| 16 | $class = $this->loadClass($class); |
||
| 17 | |||
| 18 | $this->ensureBasicSetup($class); |
||
| 19 | |||
| 20 | // method: configureParams(OptionsResolver $resolver) |
||
|
1 ignored issue
–
show
|
|||
| 21 | // $this->addConfigureParamsMethod($class, ''); |
||
| 22 | |||
| 23 | // method: run(Request $request) : Response |
||
| 24 | if (!$class->hasMethod('run')) { |
||
| 25 | $class->setMethod($this->generateRunMethod($this->twig->render('skeleton-run.twig'))); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $class; |
||
| 29 | } |
||
| 30 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.