@@ -266,7 +266,7 @@ |
||
266 | 266 | /** |
267 | 267 | * Loads the column information into a [[ColumnSchema]] object. |
268 | 268 | * @param array $info column information |
269 | - * @return ColumnSchema the column schema object |
|
269 | + * @return \yii\db\ColumnSchema the column schema object |
|
270 | 270 | */ |
271 | 271 | protected function loadColumnSchema($info) |
272 | 272 | { |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | /** |
244 | 244 | * Binds a parameter to the SQL statement to be executed. |
245 | - * @param string|int $name parameter identifier. For a prepared statement |
|
245 | + * @param string $name parameter identifier. For a prepared statement |
|
246 | 246 | * using named placeholders, this will be a parameter name of |
247 | 247 | * the form `:name`. For a prepared statement using question mark |
248 | 248 | * placeholders, this will be the 1-indexed position of the parameter. |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | /** |
380 | 380 | * Executes the SQL statement and returns the value of the first column in the first row of data. |
381 | 381 | * This method is best used when only a single value is needed for a query. |
382 | - * @return string|null|false the value of the first column in the first row of the query result. |
|
382 | + * @return string the value of the first column in the first row of the query result. |
|
383 | 383 | * False is returned if there is no value. |
384 | 384 | * @throws Exception execution failed |
385 | 385 | */ |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | * ``` |
447 | 447 | * |
448 | 448 | * @param array $array the array that needs to be indexed or grouped |
449 | - * @param string|\Closure|null $key the column name or anonymous function which result will be used to index the array |
|
449 | + * @param null|string $key the column name or anonymous function which result will be used to index the array |
|
450 | 450 | * @param string|string[]|\Closure[]|null $groups the array of keys, that will be used to group the input array |
451 | 451 | * by one or more keys. If the $key attribute or its value for the particular element is null and $groups is not |
452 | 452 | * defined, the array element will be discarded. Otherwise, if $groups is specified, array element will be added |
@@ -566,8 +566,8 @@ discard block |
||
566 | 566 | * ``` |
567 | 567 | * |
568 | 568 | * @param array $array |
569 | - * @param string|\Closure $from |
|
570 | - * @param string|\Closure $to |
|
569 | + * @param string $from |
|
570 | + * @param string $to |
|
571 | 571 | * @param string|\Closure $group |
572 | 572 | * @return array |
573 | 573 | */ |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | * To sort by multiple keys, provide an array of keys here. |
623 | 623 | * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
624 | 624 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
625 | - * @param int|array $sortFlag the PHP sort flag. Valid values include |
|
625 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
626 | 626 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
627 | 627 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
628 | 628 | * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | |
372 | 372 | /** |
373 | 373 | * @param array $what list of items |
374 | - * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
374 | + * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
375 | 375 | * @throws \yii\base\Exception |
376 | 376 | */ |
377 | 377 | protected function validateWhat(array $what, $limit = [], $ensureGitClean = true) |
@@ -550,6 +550,10 @@ discard block |
||
550 | 550 | $this->stdout("\n"); |
551 | 551 | } |
552 | 552 | |
553 | + /** |
|
554 | + * @param string $name |
|
555 | + * @param string $path |
|
556 | + */ |
|
553 | 557 | protected function releaseApplication($name, $path, $version) |
554 | 558 | { |
555 | 559 | $this->stdout("\n"); |
@@ -650,6 +654,9 @@ discard block |
||
650 | 654 | Yii::setAlias('@app', $this->_oldAlias); |
651 | 655 | } |
652 | 656 | |
657 | + /** |
|
658 | + * @param string $name |
|
659 | + */ |
|
653 | 660 | protected function packageApplication($name, $version, $packagePath) |
654 | 661 | { |
655 | 662 | FileHelper::createDirectory($packagePath); |
@@ -811,6 +818,9 @@ discard block |
||
811 | 818 | } |
812 | 819 | |
813 | 820 | |
821 | + /** |
|
822 | + * @param string[] $what |
|
823 | + */ |
|
814 | 824 | protected function closeChangelogs($what, $version) |
815 | 825 | { |
816 | 826 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -822,6 +832,9 @@ discard block |
||
822 | 832 | ); |
823 | 833 | } |
824 | 834 | |
835 | + /** |
|
836 | + * @param string[] $what |
|
837 | + */ |
|
825 | 838 | protected function openChangelogs($what, $version) |
826 | 839 | { |
827 | 840 | $headline = "\n$version under development\n"; |
@@ -978,6 +991,9 @@ discard block |
||
978 | 991 | $frameworkPath . '/BaseYii.php'); |
979 | 992 | } |
980 | 993 | |
994 | + /** |
|
995 | + * @param string $pattern |
|
996 | + */ |
|
981 | 997 | protected function sed($pattern, $replace, $files) |
982 | 998 | { |
983 | 999 | foreach ((array) $files as $file) { |
@@ -1007,6 +1023,9 @@ discard block |
||
1007 | 1023 | return $versions; |
1008 | 1024 | } |
1009 | 1025 | |
1026 | + /** |
|
1027 | + * @param string $type |
|
1028 | + */ |
|
1010 | 1029 | protected function getNextVersions(array $versions, $type) |
1011 | 1030 | { |
1012 | 1031 | foreach ($versions as $k => $v) { |