Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
72 | protected function filterAttribute($name, $content) |
||
73 | { |
||
74 | $limit = isset($this->characterLimits[$name]) ? $this->characterLimits[$name] : null; |
||
75 | |||
76 | if($limit && strlen($content) > $limit) |
||
77 | { |
||
78 | $content = substr($content, 0, $limit - 3).'...'; |
||
79 | } |
||
80 | |||
81 | return $content; |
||
82 | } |
||
83 | } |
||
84 |
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.