1 | <?php |
||
18 | class LocalStorage extends Storage |
||
19 | { |
||
20 | /** |
||
21 | * Upload directory |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | 34 | private function uploadDir() |
|
33 | |||
34 | /** |
||
35 | * Path to the temporary directory of the file |
||
36 | * |
||
37 | * @param bool $realPath |
||
38 | * @return string |
||
39 | */ |
||
40 | 28 | private function dirTmp($realPath = false) |
|
51 | |||
52 | /** |
||
53 | * Path to the directory of the file |
||
54 | * |
||
55 | * @param bool $realPath |
||
56 | * @return string |
||
57 | */ |
||
58 | 34 | private function dir($realPath = false) |
|
73 | |||
74 | /** |
||
75 | * Path to the temporary file |
||
76 | * |
||
77 | * @param bool $realPath |
||
78 | * @return string |
||
79 | */ |
||
80 | 26 | private function pathTmp($realPath = false) |
|
84 | |||
85 | /** |
||
86 | * Path to the file |
||
87 | * |
||
88 | * @param bool $realPath |
||
89 | * @return string |
||
90 | */ |
||
91 | 34 | public function path($realPath = false) |
|
95 | |||
96 | /** |
||
97 | * Save the file to the storage or temporary directory |
||
98 | * |
||
99 | * @param string $tempFile |
||
|
|||
100 | * @param bool $temporary |
||
101 | * @param bool $isUploadedFile File has been uploaded or manually created |
||
102 | * @return \rkit\filemanager\models\File|bool |
||
103 | */ |
||
104 | 35 | public function save($path, $isUploadedFile = true) |
|
124 | |||
125 | /** |
||
126 | * Save temporary directory to the storage |
||
127 | * |
||
128 | * @return bool |
||
129 | */ |
||
130 | 26 | public function saveTmpDirToStorage() |
|
140 | |||
141 | 11 | public function delete() |
|
145 | } |
||
146 |
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.