@@ -277,7 +277,7 @@ |
||
277 | 277 | } |
278 | 278 | |
279 | 279 | /** |
280 | - * @return mixed |
|
280 | + * @return string |
|
281 | 281 | */ |
282 | 282 | public function defaultVal() |
283 | 283 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @param array $propertyIdents Optional. List of property identifiers |
63 | 63 | * for retrieving a subset of property objects. |
64 | - * @return PropertyInterface[]|\Generator |
|
64 | + * @return \Generator |
|
65 | 65 | */ |
66 | 66 | public function properties(array $propertyIdents = null) |
67 | 67 | { |
@@ -271,7 +271,7 @@ |
||
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
274 | - * @return array |
|
274 | + * @return string[] |
|
275 | 275 | */ |
276 | 276 | public function validationMethods() |
277 | 277 | { |
@@ -741,7 +741,7 @@ |
||
741 | 741 | /** |
742 | 742 | * Legacy support of active() instead of getActive(). |
743 | 743 | * |
744 | - * @return string |
|
744 | + * @return boolean |
|
745 | 745 | */ |
746 | 746 | public function active() |
747 | 747 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * |
160 | 160 | * @param string|boolean $event A specific event to check or a global flag to set. |
161 | 161 | * @throws OutOfBoundsException If the effects event does not exist. |
162 | - * @return mixed Returns TRUE or FALSE if the property applies effects for the given event. |
|
162 | + * @return boolean Returns TRUE or FALSE if the property applies effects for the given event. |
|
163 | 163 | */ |
164 | 164 | public function canApplyEffects($event) |
165 | 165 | { |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | /** |
180 | 180 | * Retrieve the supported events where effects can be applied. |
181 | 181 | * |
182 | - * @return array |
|
182 | + * @return string[] |
|
183 | 183 | */ |
184 | 184 | public function acceptedEffectsEvents() |
185 | 185 | { |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | * @param array $effects The effects to apply on the target. |
466 | 466 | * @param ImageInterface|null $image Optional. The image for processing. |
467 | 467 | * @throws InvalidArgumentException If the $value is not a string. |
468 | - * @return mixed Returns the processed target or NULL. |
|
468 | + * @return null|string Returns the processed target or NULL. |
|
469 | 469 | */ |
470 | 470 | private function processEffectsOne($value, array $effects = null, ImageInterface $image = null) |
471 | 471 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @param mixed $label The true label. |
|
112 | + * @param string $label The true label. |
|
113 | 113 | * @return self |
114 | 114 | */ |
115 | 115 | public function setTrueLabel($label) |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @param mixed $label The false label. |
|
134 | + * @param string $label The false label. |
|
135 | 135 | * @return self |
136 | 136 | */ |
137 | 137 | public function setFalseLabel($label) |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | } |
271 | 271 | |
272 | 272 | /** |
273 | - * @return array |
|
273 | + * @return string[] |
|
274 | 274 | */ |
275 | 275 | public function validationMethods() |
276 | 276 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | |
367 | 367 | /** |
368 | - * @param integer|string $timestamp Timestamp. |
|
368 | + * @param integer $timestamp Timestamp. |
|
369 | 369 | * @return boolean |
370 | 370 | */ |
371 | 371 | private function isValidTimeStamp($timestamp) |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * Set the MIME type. |
279 | 279 | * |
280 | - * @param mixed $type The file MIME type. |
|
280 | + * @param string $type The file MIME type. |
|
281 | 281 | * @throws InvalidArgumentException If the MIME type argument is not a string. |
282 | 282 | * @return FileProperty Chainable |
283 | 283 | */ |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | * |
304 | 304 | * @todo Refactor to support multilingual/multiple files. |
305 | 305 | * |
306 | - * @return integer Returns the MIME type for the first value. |
|
306 | + * @return null|string Returns the MIME type for the first value. |
|
307 | 307 | */ |
308 | 308 | public function getMimetype() |
309 | 309 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * Extract the MIME type from the given file. |
330 | 330 | * |
331 | 331 | * @param string $file The file to check. |
332 | - * @return integer|null Returns the file's MIME type, |
|
332 | + * @return null|string Returns the file's MIME type, |
|
333 | 333 | * or NULL in case of an error or the file is missing. |
334 | 334 | */ |
335 | 335 | public function getMimetypeFor($file) |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | } |
502 | 502 | |
503 | 503 | /** |
504 | - * @return array |
|
504 | + * @return string[] |
|
505 | 505 | */ |
506 | 506 | public function validationMethods() |
507 | 507 | { |
@@ -1148,7 +1148,7 @@ discard block |
||
1148 | 1148 | /** |
1149 | 1149 | * Generate a unique filename. |
1150 | 1150 | * |
1151 | - * @param string|array $filename The filename to alter. |
|
1151 | + * @param string $filename The filename to alter. |
|
1152 | 1152 | * @throws InvalidArgumentException If the given filename is invalid. |
1153 | 1153 | * @return string |
1154 | 1154 | */ |
@@ -1599,7 +1599,7 @@ discard block |
||
1599 | 1599 | * |
1600 | 1600 | * @param array $uploadedFiles The non-normalized tree of uploaded file data. |
1601 | 1601 | * @param callable $filterCallback If specified, the callback function to used to filter files. |
1602 | - * @param mixed $searchKey If specified, then only top-level keys containing these values are returned. |
|
1602 | + * @param string $searchKey If specified, then only top-level keys containing these values are returned. |
|
1603 | 1603 | * @return array A tree of normalized $_FILE entries. |
1604 | 1604 | */ |
1605 | 1605 | public static function parseUploadedFiles(array $uploadedFiles, callable $filterCallback = null, $searchKey = null) |