1 | <?php |
||
20 | class Decoder |
||
21 | { |
||
22 | /** |
||
23 | * Create a file from the path |
||
24 | * |
||
25 | * @param Storage $storage; |
||
|
|||
26 | * @param string $path Path to the file |
||
27 | * @param int $ownerId The id of the owner |
||
28 | * @param int $ownerType The type of the owner |
||
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 | * @throws InvalidValueException |
||
33 | */ |
||
34 | 32 | public function createFromPath( |
|
50 | |||
51 | /** |
||
52 | * Create a file from the remote path |
||
53 | * |
||
54 | * @param Storage $storage; |
||
55 | * @param string $path Path to the file or URL |
||
56 | * @param int $ownerId The id of the owner |
||
57 | * @param int $ownerType The type of the owner |
||
58 | * @param bool $temporary The file is temporary |
||
59 | * @param bool $protected The file is protected, not available from the web |
||
60 | * @return \rkit\filemanager\models\File|bool |
||
61 | * @throws InvalidValueException |
||
62 | */ |
||
63 | 5 | public function createFromRemotePath( |
|
83 | } |
||
84 |
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.