@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * @param string $cacheKey generated cache key to store data. |
397 | 397 | * @param string $route the route (e.g. `site/index`). |
398 | 398 | * @param array $params rule params. |
399 | - * @return boolean|string the created URL |
|
399 | + * @return string|false the created URL |
|
400 | 400 | * @see createUrl() |
401 | 401 | * @since 2.0.8 |
402 | 402 | */ |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Store rule (e.g. [[UrlRule]]) to internal cache |
420 | - * @param $cacheKey |
|
420 | + * @param string $cacheKey |
|
421 | 421 | * @param UrlRuleInterface $rule |
422 | 422 | * @since 2.0.8 |
423 | 423 | */ |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
435 | 435 | * as an absolute route. |
436 | 436 | * |
437 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
437 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
438 | 438 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
439 | 439 | * @param string $scheme the scheme to use for the url (either `http` or `https`). If not specified |
440 | 440 | * the scheme of the current request will be used. |
@@ -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|boolean 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 |
@@ -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) { |