@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | |
323 | 323 | /** |
324 | 324 | * @param array $what list of items |
325 | - * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
325 | + * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
326 | 326 | * @throws \yii\base\Exception |
327 | 327 | */ |
328 | 328 | protected function validateWhat(array $what, $limit = []) |
@@ -486,6 +486,10 @@ discard block |
||
486 | 486 | |
487 | 487 | } |
488 | 488 | |
489 | + /** |
|
490 | + * @param string $name |
|
491 | + * @param string $path |
|
492 | + */ |
|
489 | 493 | protected function releaseApplication($name, $path, $version) |
490 | 494 | { |
491 | 495 | $this->stdout("\n"); |
@@ -584,6 +588,9 @@ discard block |
||
584 | 588 | Yii::setAlias('@app', $this->_oldAlias); |
585 | 589 | } |
586 | 590 | |
591 | + /** |
|
592 | + * @param string $name |
|
593 | + */ |
|
587 | 594 | protected function packageApplication($name, $version, $packagePath) |
588 | 595 | { |
589 | 596 | FileHelper::createDirectory($packagePath); |
@@ -741,6 +748,9 @@ discard block |
||
741 | 748 | } |
742 | 749 | |
743 | 750 | |
751 | + /** |
|
752 | + * @param string[] $what |
|
753 | + */ |
|
744 | 754 | protected function closeChangelogs($what, $version) |
745 | 755 | { |
746 | 756 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -752,6 +762,9 @@ discard block |
||
752 | 762 | ); |
753 | 763 | } |
754 | 764 | |
765 | + /** |
|
766 | + * @param string[] $what |
|
767 | + */ |
|
755 | 768 | protected function openChangelogs($what, $version) |
756 | 769 | { |
757 | 770 | $headline = "\n$version under development\n"; |
@@ -768,6 +781,9 @@ discard block |
||
768 | 781 | } |
769 | 782 | } |
770 | 783 | |
784 | + /** |
|
785 | + * @param string[] $what |
|
786 | + */ |
|
771 | 787 | protected function resortChangelogs($what, $version) |
772 | 788 | { |
773 | 789 | foreach($this->getChangelogs($what) as $file) { |
@@ -902,6 +918,9 @@ discard block |
||
902 | 918 | $frameworkPath . '/BaseYii.php'); |
903 | 919 | } |
904 | 920 | |
921 | + /** |
|
922 | + * @param string $pattern |
|
923 | + */ |
|
905 | 924 | protected function sed($pattern, $replace, $files) |
906 | 925 | { |
907 | 926 | foreach((array) $files as $file) { |
@@ -934,6 +953,9 @@ discard block |
||
934 | 953 | const MINOR = 'minor'; |
935 | 954 | const PATCH = 'patch'; |
936 | 955 | |
956 | + /** |
|
957 | + * @param string $type |
|
958 | + */ |
|
937 | 959 | protected function getNextVersions(array $versions, $type) |
938 | 960 | { |
939 | 961 | foreach($versions as $k => $v) { |