1 | <?php |
||
14 | trait FilesTrait |
||
15 | { |
||
16 | /** |
||
17 | * @param $file |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | protected function getFileName($file) |
||
31 | |||
32 | /** |
||
33 | * Get the target destination path for the files. |
||
34 | * |
||
35 | * @param string $package |
||
|
|||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | protected function getDestinationPath($type, $args) |
||
43 | |||
44 | /** |
||
45 | * @param $type |
||
46 | * @param $files |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function getSourceFiles($path) |
||
59 | |||
60 | /** |
||
61 | * @param $path |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | protected function getClassFromFile($path) |
||
75 | } |
||
76 |
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.