Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
30 | View Code Duplication | public static function pluginsDirectories($plugins) { |
|
31 | $plugins = func_get_args(); |
||
32 | |||
33 | if(empty($plugins)) { |
||
34 | throw new InvalidArgumentException('Pass plugins folder names to watch for Notices & Warnings'); |
||
35 | } |
||
36 | |||
37 | $plugins = array_map(function($plugin){ |
||
38 | return '@plugins/' . preg_quote($plugin, '@') . '@'; |
||
39 | }, $plugins); |
||
40 | |||
41 | return new self($plugins); |
||
42 | } |
||
43 | |||
78 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.