@@ -129,7 +129,7 @@ |
||
| 129 | 129 | * This method is called by [[evaluateAttributes()]]. Its return value will be assigned |
| 130 | 130 | * to the attributes corresponding to the triggering event. |
| 131 | 131 | * @param Event $event the event that triggers the current attribute updating. |
| 132 | - * @return mixed the attribute value |
|
| 132 | + * @return string the attribute value |
|
| 133 | 133 | */ |
| 134 | 134 | protected function getValue($event) |
| 135 | 135 | { |
@@ -323,7 +323,7 @@ |
||
| 323 | 323 | /** |
| 324 | 324 | * Returns the list of all attribute names of the model. |
| 325 | 325 | * The default implementation will return all column names of the table associated with this AR class. |
| 326 | - * @return array list of attribute names. |
|
| 326 | + * @return integer[] list of attribute names. |
|
| 327 | 327 | */ |
| 328 | 328 | public function attributes() |
| 329 | 329 | { |
@@ -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 |
@@ -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 | { |
@@ -55,6 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @inheritdoc |
| 58 | + * @return string |
|
| 58 | 59 | */ |
| 59 | 60 | public function formatMessage($message) |
| 60 | 61 | { |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * Check the given requirements, collecting results into internal field. |
| 61 | 61 | * This method can be invoked several times checking different requirement sets. |
| 62 | 62 | * Use [[getResult()]] or [[render()]] to get the results. |
| 63 | - * @param array|string $requirements requirements to be checked. |
|
| 63 | + * @param string $requirements requirements to be checked. |
|
| 64 | 64 | * If an array, it is treated as the set of requirements; |
| 65 | 65 | * If a string, it is treated as the path of the file, which contains the requirements; |
| 66 | 66 | * @return $this self instance. |
@@ -431,7 +431,7 @@ |
||
| 431 | 431 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
| 432 | 432 | * @param string $name the parameter name |
| 433 | 433 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
| 434 | - * @return mixed the parameter value |
|
| 434 | + * @return string the parameter value |
|
| 435 | 435 | * @see getBodyParams() |
| 436 | 436 | * @see setBodyParams() |
| 437 | 437 | */ |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | - * @return array the begin and end pages that need to be displayed. |
|
| 228 | + * @return integer[] the begin and end pages that need to be displayed. |
|
| 229 | 229 | */ |
| 230 | 230 | protected function getPageRange() |
| 231 | 231 | { |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | |
| 366 | 366 | /** |
| 367 | 367 | * @param array $what list of items |
| 368 | - * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
| 368 | + * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
| 369 | 369 | * @throws \yii\base\Exception |
| 370 | 370 | */ |
| 371 | 371 | protected function validateWhat(array $what, $limit = [], $ensureGitClean = true) |
@@ -537,6 +537,10 @@ discard block |
||
| 537 | 537 | |
| 538 | 538 | } |
| 539 | 539 | |
| 540 | + /** |
|
| 541 | + * @param string $name |
|
| 542 | + * @param string $path |
|
| 543 | + */ |
|
| 540 | 544 | protected function releaseApplication($name, $path, $version) |
| 541 | 545 | { |
| 542 | 546 | $this->stdout("\n"); |
@@ -637,6 +641,9 @@ discard block |
||
| 637 | 641 | Yii::setAlias('@app', $this->_oldAlias); |
| 638 | 642 | } |
| 639 | 643 | |
| 644 | + /** |
|
| 645 | + * @param string $name |
|
| 646 | + */ |
|
| 640 | 647 | protected function packageApplication($name, $version, $packagePath) |
| 641 | 648 | { |
| 642 | 649 | FileHelper::createDirectory($packagePath); |
@@ -796,6 +803,9 @@ discard block |
||
| 796 | 803 | } |
| 797 | 804 | |
| 798 | 805 | |
| 806 | + /** |
|
| 807 | + * @param string[] $what |
|
| 808 | + */ |
|
| 799 | 809 | protected function closeChangelogs($what, $version) |
| 800 | 810 | { |
| 801 | 811 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -807,6 +817,9 @@ discard block |
||
| 807 | 817 | ); |
| 808 | 818 | } |
| 809 | 819 | |
| 820 | + /** |
|
| 821 | + * @param string[] $what |
|
| 822 | + */ |
|
| 810 | 823 | protected function openChangelogs($what, $version) |
| 811 | 824 | { |
| 812 | 825 | $headline = "\n$version under development\n"; |
@@ -957,6 +970,9 @@ discard block |
||
| 957 | 970 | $frameworkPath . '/BaseYii.php'); |
| 958 | 971 | } |
| 959 | 972 | |
| 973 | + /** |
|
| 974 | + * @param string $pattern |
|
| 975 | + */ |
|
| 960 | 976 | protected function sed($pattern, $replace, $files) |
| 961 | 977 | { |
| 962 | 978 | foreach((array) $files as $file) { |
@@ -989,6 +1005,9 @@ discard block |
||
| 989 | 1005 | const MINOR = 'minor'; |
| 990 | 1006 | const PATCH = 'patch'; |
| 991 | 1007 | |
| 1008 | + /** |
|
| 1009 | + * @param string $type |
|
| 1010 | + */ |
|
| 992 | 1011 | protected function getNextVersions(array $versions, $type) |
| 993 | 1012 | { |
| 994 | 1013 | foreach($versions as $k => $v) { |