Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function generate(ActionSchema $action) { |
||
19 | $class = PhpClass::create($action->getClass()) |
||
20 | ->setDescription('Action Class for ' . $action->getName()) |
||
21 | ->setLongDescription('This code is automatically created. Modifications will probably be overwritten.'); |
||
22 | |||
23 | $this->ensureBasicSetup($class); |
||
24 | $this->addMethods($class, $action); |
||
25 | |||
26 | return $class; |
||
27 | } |
||
28 | |||
36 | } |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.