Completed
Push — master ( bf9076...c1217e )
by Alexey
35:36
created
components/common/FileName.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
components/UploadHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
components/UploadHandlerOld.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
models/behaviors/FileUploadBehavior.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
models/behaviors/TmpRepository.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
validators/FileUploadValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     /**
51 51
      * Get error message
52 52
      *
53
-     * @param $error
53
+     * @param string $error
54 54
      *
55 55
      * @return mixed
56 56
      */
Please login to merge, or discard this patch.