@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @param UploadedFile $uploadedFile |
43 | 43 | * |
44 | - * @return mixed |
|
44 | + * @return string |
|
45 | 45 | */ |
46 | 46 | public function getFileName(UploadedFile $uploadedFile) |
47 | 47 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @param UploadedFile $uploadedFile |
57 | 57 | * |
58 | - * @return bool|mixed|string |
|
58 | + * @return string |
|
59 | 59 | * |
60 | 60 | * @throws NotSupportedException |
61 | 61 | */ |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * @param string $filePath |
142 | 142 | * @param bool $clearStatCache |
143 | 143 | * |
144 | - * @return float |
|
144 | + * @return integer |
|
145 | 145 | */ |
146 | 146 | protected function getFileSize(string $filePath, bool $clearStatCache = false) |
147 | 147 | { |
@@ -314,7 +314,7 @@ |
||
314 | 314 | * @param string $filePath |
315 | 315 | * @param bool $clearStatCache |
316 | 316 | * |
317 | - * @return float |
|
317 | + * @return integer |
|
318 | 318 | */ |
319 | 319 | protected function getFileSize(string $filePath, bool $clearStatCache = false) |
320 | 320 | { |
@@ -24,7 +24,6 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * UploadHandler constructor. |
26 | 26 | * |
27 | - * @param callable $userPostFunc |
|
28 | 27 | * @param array $options |
29 | 28 | * @param bool $initialize |
30 | 29 | * @param array $error_messages |
@@ -156,7 +155,7 @@ discard block |
||
156 | 155 | * @param $index |
157 | 156 | * @param $content_range |
158 | 157 | * |
159 | - * @return mixed|string |
|
158 | + * @return string |
|
160 | 159 | */ |
161 | 160 | protected function trim_file_name($file_path, $name, $size, $type, $error, $index, $content_range) |
162 | 161 | { |
@@ -200,7 +200,7 @@ |
||
200 | 200 | * Get file src |
201 | 201 | * |
202 | 202 | * @param string $field |
203 | - * @param null $default |
|
203 | + * @param string|null $default |
|
204 | 204 | * @param array $params |
205 | 205 | * |
206 | 206 | * @return string File src |
@@ -53,7 +53,6 @@ |
||
53 | 53 | * Get file by session key |
54 | 54 | * |
55 | 55 | * @param string $field |
56 | - * @param bool $onlyName get only file name |
|
57 | 56 | * |
58 | 57 | * @return string Return string |
59 | 58 | */ |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Get error message |
52 | 52 | * |
53 | - * @param $error |
|
53 | + * @param string $error |
|
54 | 54 | * |
55 | 55 | * @return mixed |
56 | 56 | */ |