@@ -231,7 +231,7 @@ |
||
231 | 231 | /** |
232 | 232 | * Prompts user with confirmation if caches should be flushed. |
233 | 233 | * @param array $cachesNames |
234 | - * @return bool |
|
234 | + * @return boolean|null |
|
235 | 235 | */ |
236 | 236 | private function confirmFlush($cachesNames) |
237 | 237 | { |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | * Prompts user with confirmation if fixtures should be loaded. |
311 | 311 | * @param array $fixtures |
312 | 312 | * @param array $except |
313 | - * @return bool |
|
313 | + * @return boolean|null |
|
314 | 314 | */ |
315 | 315 | private function confirmLoad($fixtures, $except) |
316 | 316 | { |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | * Prompts user with confirmation for fixtures that should be unloaded. |
343 | 343 | * @param array $fixtures |
344 | 344 | * @param array $except |
345 | - * @return bool |
|
345 | + * @return boolean|null |
|
346 | 346 | */ |
347 | 347 | private function confirmUnload($fixtures, $except) |
348 | 348 | { |
@@ -594,7 +594,7 @@ |
||
594 | 594 | * Finds out a line of the first non-char PHP token found |
595 | 595 | * |
596 | 596 | * @param array $tokens |
597 | - * @return int|string |
|
597 | + * @return string |
|
598 | 598 | * @since 2.0.1 |
599 | 599 | */ |
600 | 600 | protected function getLine($tokens) |
@@ -490,8 +490,8 @@ discard block |
||
490 | 490 | * ``` |
491 | 491 | * |
492 | 492 | * @param array $array |
493 | - * @param string|\Closure $from |
|
494 | - * @param string|\Closure $to |
|
493 | + * @param string $from |
|
494 | + * @param string $to |
|
495 | 495 | * @param string|\Closure $group |
496 | 496 | * @return array |
497 | 497 | */ |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | * To sort by multiple keys, provide an array of keys here. |
547 | 547 | * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
548 | 548 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
549 | - * @param int|array $sortFlag the PHP sort flag. Valid values include |
|
549 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
550 | 550 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
551 | 551 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
552 | 552 | * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. |
@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | * - windows without ansicon |
577 | 577 | * - not tty consoles |
578 | 578 | * |
579 | - * @param mixed $stream |
|
579 | + * @param resource $stream |
|
580 | 580 | * @return bool true if the stream supports ANSI colors, otherwise false. |
581 | 581 | */ |
582 | 582 | public static function streamSupportsAnsiColors($stream) |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | * @param bool $refresh whether to force checking and not re-use cached size value. |
602 | 602 | * This is useful to detect changing window size while the application is running but may |
603 | 603 | * not get up to date values on every terminal. |
604 | - * @return array|bool An array of ($width, $height) or false when it was not able to determine size. |
|
604 | + * @return string An array of ($width, $height) or false when it was not able to determine size. |
|
605 | 605 | */ |
606 | 606 | public static function getScreenSize($refresh = false) |
607 | 607 | { |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | * |
808 | 808 | * @param string $message to print out before waiting for user input |
809 | 809 | * @param bool $default this value is returned if no selection is made. |
810 | - * @return bool whether user confirmed |
|
810 | + * @return boolean|null whether user confirmed |
|
811 | 811 | */ |
812 | 812 | public static function confirm($message, $default = false) |
813 | 813 | { |
@@ -634,7 +634,7 @@ |
||
634 | 634 | * @param string $pattern |
635 | 635 | * @param bool $caseSensitive |
636 | 636 | * @throws \yii\base\InvalidParamException |
637 | - * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
637 | + * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
638 | 638 | */ |
639 | 639 | private static function parseExcludePattern($pattern, $caseSensitive) |
640 | 640 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * Get the error code from the last operation |
54 | 54 | * @link http://php.net/manual/en/messageformatter.geterrorcode.php |
55 | - * @return string Code of the last error. |
|
55 | + * @return integer Code of the last error. |
|
56 | 56 | */ |
57 | 57 | public function getErrorCode() |
58 | 58 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @param string $pattern The pattern string to insert parameters into. |
80 | 80 | * @param array $params The array of name value pairs to insert into the format string. |
81 | 81 | * @param string $language The locale to use for formatting locale-dependent parts |
82 | - * @return string|bool The formatted pattern string or `FALSE` if an error occurred |
|
82 | + * @return string|false The formatted pattern string or `FALSE` if an error occurred |
|
83 | 83 | */ |
84 | 84 | public function format($pattern, $params, $language) |
85 | 85 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * @param string $pattern The pattern string to insert things into. |
260 | 260 | * @param array $args The array of values to insert into the format string |
261 | 261 | * @param string $locale The locale to use for formatting locale-dependent parts |
262 | - * @return string|bool The formatted pattern string or `FALSE` if an error occurred |
|
262 | + * @return false|string The formatted pattern string or `FALSE` if an error occurred |
|
263 | 263 | */ |
264 | 264 | protected function fallbackFormat($pattern, $args, $locale) |
265 | 265 | { |
@@ -314,7 +314,7 @@ |
||
314 | 314 | * Parses date string into UNIX timestamp |
315 | 315 | * |
316 | 316 | * @param string $value string representing date |
317 | - * @return int|false a UNIX timestamp or `false` on failure. |
|
317 | + * @return integer a UNIX timestamp or `false` on failure. |
|
318 | 318 | */ |
319 | 319 | protected function parseDateValue($value) |
320 | 320 | { |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | * Returns the actual file path for the specified asset. |
329 | 329 | * @param AssetBundle $bundle the asset bundle which the asset file belongs to |
330 | 330 | * @param string $asset the asset path. This should be one of the assets listed in [[js]] or [[css]]. |
331 | - * @return string|bool the actual file path, or false if the asset is specified as an absolute URL |
|
331 | + * @return string|false the actual file path, or false if the asset is specified as an absolute URL |
|
332 | 332 | */ |
333 | 333 | public function getAssetPath($bundle, $asset) |
334 | 334 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | /** |
465 | 465 | * Publishes a file. |
466 | 466 | * @param string $src the asset file to be published |
467 | - * @return array the path and the URL that the asset is published as. |
|
467 | + * @return string[] the path and the URL that the asset is published as. |
|
468 | 468 | * @throws InvalidParamException if the asset to be published does not exist. |
469 | 469 | */ |
470 | 470 | protected function publishFile($src) |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | * it is found in the target directory. This option is used only when publishing a directory. |
510 | 510 | * This overrides [[forceCopy]] if set. |
511 | 511 | * |
512 | - * @return array the path directory and the URL that the asset is published as. |
|
512 | + * @return string[] the path directory and the URL that the asset is published as. |
|
513 | 513 | * @throws InvalidParamException if the asset to be published does not exist. |
514 | 514 | */ |
515 | 515 | protected function publishDirectory($src, $options) |