1 | <?php |
||
20 | class Decoder |
||
21 | { |
||
22 | /** |
||
23 | * Create file from uploader (UploadedFile) |
||
24 | * |
||
25 | * @param Storage $storage; |
||
|
|||
26 | * @param string $path Path to the file |
||
27 | * @param int $ownerId |
||
28 | * @param int $ownerType |
||
29 | * @param bool $temporary The file is temporary |
||
30 | * @param bool $protected The file is protected, not available from the web |
||
31 | * @return \rkit\filemanager\models\File|bool |
||
32 | */ |
||
33 | 31 | public function createFromUploader( |
|
49 | |||
50 | /** |
||
51 | * Create file from path |
||
52 | * |
||
53 | * @param Storage $storage; |
||
54 | * @param string $path Path to the file or URL |
||
55 | * @param int $ownerId |
||
56 | * @param int $ownerType |
||
57 | * @param bool $temporary The file is temporary |
||
58 | * @param bool $protected The file is protected, not available from the web |
||
59 | * @return \rkit\filemanager\models\File|bool |
||
60 | */ |
||
61 | 5 | public function createFromPath( |
|
81 | } |
||
82 |
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.