1 | <?php |
||
17 | class UploadHandlerOld extends BaseUploadHandler |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $clientOptions; |
||
23 | |||
24 | /** |
||
25 | * UploadHandler constructor. |
||
26 | * |
||
27 | * @param callable $userPostFunc |
||
|
|||
28 | * @param array $options |
||
29 | * @param bool $initialize |
||
30 | * @param array $error_messages |
||
31 | */ |
||
32 | public function __construct($clientOptions, $options = null, $initialize = true, $error_messages = null) |
||
38 | |||
39 | /** |
||
40 | * Post trigger. |
||
41 | * |
||
42 | * @param bool $print_response |
||
43 | * @param bool $print_response |
||
44 | * |
||
45 | * @throws Exception |
||
46 | */ |
||
47 | public function post($print_response = true) |
||
87 | |||
88 | /** |
||
89 | * Callback on post end method. |
||
90 | * |
||
91 | * @param $fileData |
||
92 | * |
||
93 | * @return array |
||
94 | * |
||
95 | * @throws Exception |
||
96 | */ |
||
97 | public function onFileUpload($uploader, $fileData, $userData) |
||
122 | |||
123 | protected function canDo() |
||
137 | |||
138 | /** |
||
139 | * @param $file |
||
140 | * |
||
141 | * @throws Exception |
||
142 | */ |
||
143 | protected function fileTypeExecutable($file) |
||
149 | |||
150 | /** |
||
151 | * @param $file_path |
||
152 | * @param $name |
||
153 | * @param $size |
||
154 | * @param $type |
||
155 | * @param $error |
||
156 | * @param $index |
||
157 | * @param $content_range |
||
158 | * |
||
159 | * @return mixed|string |
||
160 | */ |
||
161 | protected function trim_file_name($file_path, $name, $size, $type, $error, $index, $content_range) |
||
167 | |||
168 | /** |
||
169 | * @param $name |
||
170 | * |
||
171 | * @return mixed |
||
172 | */ |
||
173 | protected function upcount_name($name) |
||
179 | |||
180 | /** |
||
181 | * @param $matches |
||
182 | * |
||
183 | * @return string |
||
184 | */ |
||
185 | protected function upcount_name_callback($matches) |
||
192 | } |
||
193 |
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.