@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * Finds the related records and populates them into the primary models. |
186 | 186 | * @param string $name the relation name |
187 | 187 | * @param array $primaryModels primary models |
188 | - * @return array the related models |
|
188 | + * @return ActiveRecordInterface[] the related models |
|
189 | 189 | * @throws InvalidConfigException if [[link]] is invalid |
190 | 190 | */ |
191 | 191 | public function populateRelation($name, &$primaryModels) |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |
344 | - * @param array $models |
|
344 | + * @param ActiveRecordInterface[] $models |
|
345 | 345 | * @param array $link |
346 | 346 | * @param array $viaModels |
347 | 347 | * @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 | { |
@@ -360,8 +360,8 @@ discard block |
||
360 | 360 | * ~~~ |
361 | 361 | * |
362 | 362 | * @param array $array |
363 | - * @param string|\Closure $from |
|
364 | - * @param string|\Closure $to |
|
363 | + * @param string $from |
|
364 | + * @param string $to |
|
365 | 365 | * @param string|\Closure $group |
366 | 366 | * @return array |
367 | 367 | */ |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | * To sort by multiple keys, provide an array of keys here. |
415 | 415 | * @param integer|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
416 | 416 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
417 | - * @param integer|array $sortFlag the PHP sort flag. Valid values include |
|
417 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
418 | 418 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
419 | 419 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
420 | 420 | * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | * - windows without ansicon |
576 | 576 | * - not tty consoles |
577 | 577 | * |
578 | - * @param mixed $stream |
|
578 | + * @param resource $stream |
|
579 | 579 | * @return boolean true if the stream supports ANSI colors, otherwise false. |
580 | 580 | */ |
581 | 581 | public static function streamSupportsAnsiColors($stream) |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | * @param boolean $refresh whether to force checking and not re-use cached size value. |
601 | 601 | * This is useful to detect changing window size while the application is running but may |
602 | 602 | * not get up to date values on every terminal. |
603 | - * @return array|boolean An array of ($width, $height) or false when it was not able to determine size. |
|
603 | + * @return string An array of ($width, $height) or false when it was not able to determine size. |
|
604 | 604 | */ |
605 | 605 | public static function getScreenSize($refresh = false) |
606 | 606 | { |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | * Prints a string to STDOUT. |
692 | 692 | * |
693 | 693 | * @param string $string the string to print |
694 | - * @return int|boolean Number of bytes printed or false on error |
|
694 | + * @return integer Number of bytes printed or false on error |
|
695 | 695 | */ |
696 | 696 | public static function stdout($string) |
697 | 697 | { |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | * Prints a string to STDERR. |
703 | 703 | * |
704 | 704 | * @param string $string the string to print |
705 | - * @return int|boolean Number of bytes printed or false on error |
|
705 | + * @return integer Number of bytes printed or false on error |
|
706 | 706 | */ |
707 | 707 | public static function stderr($string) |
708 | 708 | { |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | * Prints text to STDOUT appended with a carriage return (PHP_EOL). |
730 | 730 | * |
731 | 731 | * @param string $string the text to print |
732 | - * @return integer|boolean number of bytes printed or false on error. |
|
732 | + * @return integer number of bytes printed or false on error. |
|
733 | 733 | */ |
734 | 734 | public static function output($string = null) |
735 | 735 | { |
@@ -740,7 +740,7 @@ discard block |
||
740 | 740 | * Prints text to STDERR appended with a carriage return (PHP_EOL). |
741 | 741 | * |
742 | 742 | * @param string $string the text to print |
743 | - * @return integer|boolean number of bytes printed or false on error. |
|
743 | + * @return integer number of bytes printed or false on error. |
|
744 | 744 | */ |
745 | 745 | public static function error($string = null) |
746 | 746 | { |
@@ -806,7 +806,7 @@ discard block |
||
806 | 806 | * |
807 | 807 | * @param string $message to print out before waiting for user input |
808 | 808 | * @param boolean $default this value is returned if no selection is made. |
809 | - * @return boolean whether user confirmed |
|
809 | + * @return boolean|null whether user confirmed |
|
810 | 810 | */ |
811 | 811 | public static function confirm($message, $default = false) |
812 | 812 | { |
@@ -623,7 +623,7 @@ |
||
623 | 623 | * @param string $pattern |
624 | 624 | * @param boolean $caseSensitive |
625 | 625 | * @throws \yii\base\InvalidParamException |
626 | - * @return array with keys: (string) pattern, (int) flags, (int|boolean) firstWildcard |
|
626 | + * @return string with keys: (string) pattern, (int) flags, (int|boolean) firstWildcard |
|
627 | 627 | */ |
628 | 628 | private static function parseExcludePattern($pattern, $caseSensitive) |
629 | 629 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * Generates a link tag that refers to an external CSS file. |
202 | - * @param array|string $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
202 | + * @param string|boolean $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
203 | 203 | * @param array $options the tag options in terms of name-value pairs. The following option is specially handled: |
204 | 204 | * |
205 | 205 | * - condition: specifies the conditional comments for IE, e.g., `lt IE 9`. When this is specified, |
@@ -1810,7 +1810,7 @@ discard block |
||
1810 | 1810 | * ~~~ |
1811 | 1811 | * |
1812 | 1812 | * @param array $options the options to be modified. |
1813 | - * @param string|array $class the CSS class(es) to be added |
|
1813 | + * @param string $class the CSS class(es) to be added |
|
1814 | 1814 | */ |
1815 | 1815 | public static function addCssClass(&$options, $class) |
1816 | 1816 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * Logs a message with the given type and category. |
129 | 129 | * If [[traceLevel]] is greater than 0, additional call stack information about |
130 | 130 | * the application code will be logged as well. |
131 | - * @param string|array $message the message to be logged. This can be a simple string or a more |
|
131 | + * @param string $message the message to be logged. This can be a simple string or a more |
|
132 | 132 | * complex data structure that will be handled by a [[Target|log target]]. |
133 | 133 | * @param integer $level the level of the message. This must be one of the following: |
134 | 134 | * `Logger::LEVEL_ERROR`, `Logger::LEVEL_WARNING`, `Logger::LEVEL_INFO`, `Logger::LEVEL_TRACE`, |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | * `$categories` and `$excludeCategories` as parameters to retrieve the |
194 | 194 | * results that you are interested in. |
195 | 195 | * |
196 | - * @param array $categories list of categories that you are interested in. |
|
196 | + * @param string[] $categories list of categories that you are interested in. |
|
197 | 197 | * You can use an asterisk at the end of a category to do a prefix match. |
198 | 198 | * For example, 'yii\db\*' will match categories starting with 'yii\db\', |
199 | 199 | * such as 'yii\db\Connection'. |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | * Returns the statistical results of DB queries. |
243 | 243 | * The results returned include the number of SQL statements executed and |
244 | 244 | * the total time spent. |
245 | - * @return array the first element indicates the number of SQL statements executed, |
|
245 | + * @return integer[] the first element indicates the number of SQL statements executed, |
|
246 | 246 | * and the second element the total time spent in SQL execution. |
247 | 247 | */ |
248 | 248 | public function getDbProfiling() |
@@ -54,6 +54,7 @@ |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @inheritdoc |
57 | + * @return string |
|
57 | 58 | */ |
58 | 59 | public function formatMessage($message) |
59 | 60 | { |