@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | |
368 | 368 | /** |
369 | 369 | * @param array $what list of items |
370 | - * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
370 | + * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
371 | 371 | * @throws \yii\base\Exception |
372 | 372 | */ |
373 | 373 | protected function validateWhat(array $what, $limit = [], $ensureGitClean = true) |
@@ -547,6 +547,10 @@ discard block |
||
547 | 547 | |
548 | 548 | } |
549 | 549 | |
550 | + /** |
|
551 | + * @param string $name |
|
552 | + * @param string $path |
|
553 | + */ |
|
550 | 554 | protected function releaseApplication($name, $path, $version) |
551 | 555 | { |
552 | 556 | $this->stdout("\n"); |
@@ -649,6 +653,9 @@ discard block |
||
649 | 653 | Yii::setAlias('@app', $this->_oldAlias); |
650 | 654 | } |
651 | 655 | |
656 | + /** |
|
657 | + * @param string $name |
|
658 | + */ |
|
652 | 659 | protected function packageApplication($name, $version, $packagePath) |
653 | 660 | { |
654 | 661 | FileHelper::createDirectory($packagePath); |
@@ -810,6 +817,9 @@ discard block |
||
810 | 817 | } |
811 | 818 | |
812 | 819 | |
820 | + /** |
|
821 | + * @param string[] $what |
|
822 | + */ |
|
813 | 823 | protected function closeChangelogs($what, $version) |
814 | 824 | { |
815 | 825 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -821,6 +831,9 @@ discard block |
||
821 | 831 | ); |
822 | 832 | } |
823 | 833 | |
834 | + /** |
|
835 | + * @param string[] $what |
|
836 | + */ |
|
824 | 837 | protected function openChangelogs($what, $version) |
825 | 838 | { |
826 | 839 | $headline = "\n$version under development\n"; |
@@ -882,6 +895,7 @@ discard block |
||
882 | 895 | |
883 | 896 | /** |
884 | 897 | * Ensure sorting of the changelog lines |
898 | + * @param string[] $changelog |
|
885 | 899 | */ |
886 | 900 | protected function resortChangelog($changelog) |
887 | 901 | { |
@@ -977,6 +991,9 @@ discard block |
||
977 | 991 | $frameworkPath . '/BaseYii.php'); |
978 | 992 | } |
979 | 993 | |
994 | + /** |
|
995 | + * @param string $pattern |
|
996 | + */ |
|
980 | 997 | protected function sed($pattern, $replace, $files) |
981 | 998 | { |
982 | 999 | foreach ((array) $files as $file) { |
@@ -1009,6 +1026,9 @@ discard block |
||
1009 | 1026 | const MINOR = 'minor'; |
1010 | 1027 | const PATCH = 'patch'; |
1011 | 1028 | |
1029 | + /** |
|
1030 | + * @param string $type |
|
1031 | + */ |
|
1012 | 1032 | protected function getNextVersions(array $versions, $type) |
1013 | 1033 | { |
1014 | 1034 | foreach ($versions as $k => $v) { |
@@ -251,6 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * @inheritdoc |
253 | 253 | * @since 2.0.8 |
254 | + * @param string $comment |
|
254 | 255 | */ |
255 | 256 | public function addCommentOnColumn($table, $column, $comment) |
256 | 257 | { |
@@ -267,6 +268,7 @@ discard block |
||
267 | 268 | /** |
268 | 269 | * @inheritdoc |
269 | 270 | * @since 2.0.8 |
271 | + * @param string $comment |
|
270 | 272 | */ |
271 | 273 | public function addCommentOnTable($table, $comment) |
272 | 274 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Verifies and decrypts data encrypted with [[encryptByPassword()]]. |
137 | 137 | * @param string $data the encrypted data to decrypt |
138 | 138 | * @param string $password the password to use for decryption |
139 | - * @return bool|string the decrypted data or false on authentication failure |
|
139 | + * @return false|string the decrypted data or false on authentication failure |
|
140 | 140 | * @see encryptByPassword() |
141 | 141 | */ |
142 | 142 | public function decryptByPassword($data, $password) |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * @param string $data the encrypted data to decrypt |
150 | 150 | * @param string $inputKey the input to use for encryption and authentication |
151 | 151 | * @param string $info optional context and application specific information, see [[hkdf()]] |
152 | - * @return bool|string the decrypted data or false on authentication failure |
|
152 | + * @return false|string the decrypted data or false on authentication failure |
|
153 | 153 | * @see encryptByKey() |
154 | 154 | */ |
155 | 155 | public function decryptByKey($data, $inputKey, $info = null) |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * @param string $secret the decryption password or key |
217 | 217 | * @param string|null $info context/application specific information, @see encrypt() |
218 | 218 | * |
219 | - * @return bool|string the decrypted data or false on authentication failure |
|
219 | + * @return false|string the decrypted data or false on authentication failure |
|
220 | 220 | * @throws InvalidConfigException on OpenSSL not loaded |
221 | 221 | * @throws Exception on OpenSSL error |
222 | 222 | * @see encrypt() |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use yii\console\Controller; |
14 | 14 | use yii\helpers\Console; |
15 | 15 | use yii\helpers\FileHelper; |
16 | -use yii\helpers\StringHelper; |
|
17 | 16 | |
18 | 17 | /** |
19 | 18 | * BaseMigrateController is the base class for migrate controllers. |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * yii migrate/down all # revert all migrations |
205 | 205 | * ``` |
206 | 206 | * |
207 | - * @param int|string $limit the number of migrations to be reverted. Defaults to 1, |
|
207 | + * @param integer $limit the number of migrations to be reverted. Defaults to 1, |
|
208 | 208 | * meaning the last applied migration will be reverted. When value is "all", all migrations will be reverted. |
209 | 209 | * @throws Exception if the number of the steps specified is less than 1. |
210 | 210 | * |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * yii migrate/redo all # redo all migrations |
267 | 267 | * ``` |
268 | 268 | * |
269 | - * @param int|string $limit the number of migrations to be redone. Defaults to 1, |
|
269 | + * @param integer $limit the number of migrations to be redone. Defaults to 1, |
|
270 | 270 | * meaning the last applied migration will be redone. When equals "all", all migrations will be redone. |
271 | 271 | * @throws Exception if the number of the steps specified is less than 1. |
272 | 272 | * |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | * yii migrate/history all # showing the whole history |
464 | 464 | * ``` |
465 | 465 | * |
466 | - * @param int|string $limit the maximum number of migrations to be displayed. |
|
466 | + * @param integer $limit the maximum number of migrations to be displayed. |
|
467 | 467 | * If it is "all", the whole migration history will be displayed. |
468 | 468 | * @throws \yii\console\Exception if invalid limit value passed |
469 | 469 | */ |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * yii migrate/new all # showing all new migrations |
508 | 508 | * ``` |
509 | 509 | * |
510 | - * @param int|string $limit the maximum number of new migrations to be displayed. |
|
510 | + * @param integer $limit the maximum number of new migrations to be displayed. |
|
511 | 511 | * If it is `all`, all available new migrations will be displayed. |
512 | 512 | * @throws \yii\console\Exception if invalid limit value passed |
513 | 513 | */ |