1 | <?php |
||
19 | class Extractor |
||
20 | { |
||
21 | /** |
||
22 | * @var FileExtractor[] |
||
23 | */ |
||
24 | private $fileExtractors = []; |
||
25 | |||
26 | /** |
||
27 | * @param Finder $finder |
||
28 | * |
||
29 | * @return SourceCollection |
||
30 | */ |
||
31 | 1 | public function extract(Finder $finder) |
|
35 | |||
36 | /** |
||
37 | * @param string $dir |
||
38 | * |
||
39 | * @return SourceCollection |
||
40 | */ |
||
41 | public function extractFromDirectory($dir) |
||
48 | |||
49 | /** |
||
50 | * @param SplFileInfo $file |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | 1 | private function getType(SplFileInfo $file) |
|
75 | |||
76 | /** |
||
77 | * @param FileExtractor $fileExtractors |
||
|
|||
78 | */ |
||
79 | 1 | public function addFileExtractor(FileExtractor $fileExtractor) |
|
83 | |||
84 | /** |
||
85 | * @param Finder $finder |
||
86 | * |
||
87 | * @return SourceCollection |
||
88 | */ |
||
89 | 1 | private function doExtract(Finder $finder) |
|
105 | } |
||
106 |
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.