@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * Finds the related records and populates them into the primary models. |
188 | 188 | * @param string $name the relation name |
189 | 189 | * @param array $primaryModels primary models |
190 | - * @return array the related models |
|
190 | + * @return ActiveRecordInterface[] the related models |
|
191 | 191 | * @throws InvalidConfigException if [[link]] is invalid |
192 | 192 | */ |
193 | 193 | public function populateRelation($name, &$primaryModels) |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | } |
344 | 344 | |
345 | 345 | /** |
346 | - * @param array $models |
|
346 | + * @param ActiveRecordInterface[] $models |
|
347 | 347 | * @param array $link |
348 | 348 | * @param array $viaModels |
349 | 349 | * @param array $viaLink |
@@ -114,7 +114,7 @@ |
||
114 | 114 | /** |
115 | 115 | * Returns a single column from the next row of a result set. |
116 | 116 | * @param integer $columnIndex zero-based column index |
117 | - * @return mixed the column of the current row, false if no more rows available |
|
117 | + * @return string the column of the current row, false if no more rows available |
|
118 | 118 | */ |
119 | 119 | public function readColumn($columnIndex) |
120 | 120 | { |
@@ -54,6 +54,7 @@ |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @inheritdoc |
57 | + * @param string $name |
|
57 | 58 | */ |
58 | 59 | public function quoteSimpleTableName($name) |
59 | 60 | { |
@@ -842,7 +842,7 @@ |
||
842 | 842 | |
843 | 843 | /** |
844 | 844 | * Appends a SQL statement using UNION operator. |
845 | - * @param string|Query $sql the SQL statement to be appended using UNION |
|
845 | + * @param Query $sql the SQL statement to be appended using UNION |
|
846 | 846 | * @param boolean $all TRUE if using UNION ALL and FALSE if using UNION |
847 | 847 | * @return $this the query object itself |
848 | 848 | */ |
@@ -459,8 +459,8 @@ discard block |
||
459 | 459 | * ``` |
460 | 460 | * |
461 | 461 | * @param array $array |
462 | - * @param string|\Closure $from |
|
463 | - * @param string|\Closure $to |
|
462 | + * @param string $from |
|
463 | + * @param string $to |
|
464 | 464 | * @param string|\Closure $group |
465 | 465 | * @return array |
466 | 466 | */ |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | * To sort by multiple keys, provide an array of keys here. |
516 | 516 | * @param integer|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
517 | 517 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
518 | - * @param integer|array $sortFlag the PHP sort flag. Valid values include |
|
518 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
519 | 519 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
520 | 520 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
521 | 521 | * 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 boolean 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 boolean $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|boolean 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 boolean $default this value is returned if no selection is made. |
810 | - * @return boolean whether user confirmed |
|
810 | + * @return boolean|null whether user confirmed |
|
811 | 811 | */ |
812 | 812 | public static function confirm($message, $default = false) |
813 | 813 | { |
@@ -632,7 +632,7 @@ |
||
632 | 632 | * @param string $pattern |
633 | 633 | * @param boolean $caseSensitive |
634 | 634 | * @throws \yii\base\InvalidParamException |
635 | - * @return array with keys: (string) pattern, (int) flags, (int|boolean) firstWildcard |
|
635 | + * @return string with keys: (string) pattern, (int) flags, (int|boolean) firstWildcard |
|
636 | 636 | */ |
637 | 637 | private static function parseExcludePattern($pattern, $caseSensitive) |
638 | 638 | { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | /** |
210 | 210 | * Generates a link tag that refers to an external CSS file. |
211 | - * @param array|string $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
211 | + * @param string|boolean $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
212 | 212 | * @param array $options the tag options in terms of name-value pairs. The following option is specially handled: |
213 | 213 | * |
214 | 214 | * - condition: specifies the conditional comments for IE, e.g., `lt IE 9`. When this is specified, |
@@ -1806,7 +1806,7 @@ discard block |
||
1806 | 1806 | * ``` |
1807 | 1807 | * |
1808 | 1808 | * @param array $options the options to be modified. |
1809 | - * @param string|array $class the CSS class(es) to be added |
|
1809 | + * @param string $class the CSS class(es) to be added |
|
1810 | 1810 | */ |
1811 | 1811 | public static function addCssClass(&$options, $class) |
1812 | 1812 | { |
@@ -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|boolean 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|boolean 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 | { |