Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
50 | View Code Duplication | public static function themesDirectories() { |
|
51 | $themes = func_get_args(); |
||
52 | |||
53 | if(empty($themes)) { |
||
54 | throw new InvalidArgumentException('Pass themes folder names to watch for Notices & Warnings'); |
||
55 | } |
||
56 | |||
57 | $themes = array_map(function($theme){ |
||
58 | return '@themes/' . preg_quote($theme, '@') . '@'; |
||
59 | }, $themes); |
||
60 | |||
61 | return new self($themes); |
||
62 | } |
||
63 | |||
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.