@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | * @param string $cacheKey generated cache key to store data. |
422 | 422 | * @param string $route the route (e.g. `site/index`). |
423 | 423 | * @param array $params rule params. |
424 | - * @return bool|string the created URL |
|
424 | + * @return string|false the created URL |
|
425 | 425 | * @see createUrl() |
426 | 426 | * @since 2.0.8 |
427 | 427 | */ |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | |
443 | 443 | /** |
444 | 444 | * Store rule (e.g. [[UrlRule]]) to internal cache |
445 | - * @param $cacheKey |
|
445 | + * @param string $cacheKey |
|
446 | 446 | * @param UrlRuleInterface $rule |
447 | 447 | * @since 2.0.8 |
448 | 448 | */ |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
460 | 460 | * as an absolute route. |
461 | 461 | * |
462 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
462 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
463 | 463 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
464 | 464 | * @param string|null $scheme the scheme to use for the URL (either `http`, `https` or empty string |
465 | 465 | * for protocol-relative URL). |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * @param UrlManager $manager the URL manager |
335 | 335 | * @param string $route the route. It should not have slashes at the beginning or the end. |
336 | 336 | * @param array $params the parameters |
337 | - * @return string|bool the created URL, or `false` if this rule cannot be used for creating this URL. |
|
337 | + * @return false|string the created URL, or `false` if this rule cannot be used for creating this URL. |
|
338 | 338 | */ |
339 | 339 | public function createUrl($manager, $route, $params) |
340 | 340 | { |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
426 | 426 | * Used in [[parseRequest()]], [[createUrl()]]. |
427 | 427 | * |
428 | - * @param array $matches result of `preg_match()` call |
|
428 | + * @param string[] $matches result of `preg_match()` call |
|
429 | 429 | * @return array input array with replaced placeholder keys |
430 | 430 | * @see placeholders |
431 | 431 | * @since 2.0.7 |
@@ -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 | */ |