Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
53 | public function code(int $indentation = 0) : string |
||
54 | { |
||
55 | foreach ($this->classes as $classGenerator) { |
||
56 | $this->code[] = $classGenerator->code($indentation); |
||
57 | } |
||
58 | |||
59 | foreach ($this->functions as $functionGenerator) { |
||
60 | $this->code[] = $functionGenerator->code($indentation); |
||
61 | } |
||
62 | |||
63 | return implode("\n".$this->indentation($indentation), $this->code); |
||
64 | } |
||
65 | } |
||
66 |
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.