@@ -114,6 +114,9 @@ discard block |
||
114 | 114 | return array_merge(parent::options($actionID), ['updateFiles', 'skipFrameworkRequirements']); |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param string|null $root |
|
119 | + */ |
|
117 | 120 | protected function findFiles($root, $needsInclude = true) |
118 | 121 | { |
119 | 122 | $except = []; |
@@ -237,6 +240,9 @@ discard block |
||
237 | 240 | return FileHelper::findFiles($root, $options); |
238 | 241 | } |
239 | 242 | |
243 | + /** |
|
244 | + * @param string $extensionPath |
|
245 | + */ |
|
240 | 246 | private function setUpExtensionAliases($extensionPath) |
241 | 247 | { |
242 | 248 | foreach (scandir($extensionPath) as $extension) { |
@@ -344,6 +350,9 @@ discard block |
||
344 | 350 | } |
345 | 351 | } |
346 | 352 | |
353 | + /** |
|
354 | + * @param string $line |
|
355 | + */ |
|
347 | 356 | protected function fixParamTypes($line) |
348 | 357 | { |
349 | 358 | return preg_replace_callback('~@(param|return) ([\w\\|]+)~i', function($matches) { |
@@ -477,6 +486,10 @@ discard block |
||
477 | 486 | // TODO |
478 | 487 | } |
479 | 488 | |
489 | + /** |
|
490 | + * @param null|string $className |
|
491 | + * @param string $propertyDoc |
|
492 | + */ |
|
480 | 493 | protected function updateClassPropertyDocs($file, $className, $propertyDoc) |
481 | 494 | { |
482 | 495 | $ref = new \ReflectionClass($className); |
@@ -552,7 +565,7 @@ discard block |
||
552 | 565 | /** |
553 | 566 | * remove multi empty lines and trim trailing whitespace |
554 | 567 | * |
555 | - * @param $doc |
|
568 | + * @param string $doc |
|
556 | 569 | * @return string |
557 | 570 | */ |
558 | 571 | protected function cleanDocComment($doc) |
@@ -571,7 +584,7 @@ discard block |
||
571 | 584 | |
572 | 585 | /** |
573 | 586 | * Replace property annotations in doc comment |
574 | - * @param $doc |
|
587 | + * @param string $doc |
|
575 | 588 | * @param $properties |
576 | 589 | * @return string |
577 | 590 | */ |
@@ -739,6 +752,9 @@ discard block |
||
739 | 752 | return [$className, $phpdoc]; |
740 | 753 | } |
741 | 754 | |
755 | + /** |
|
756 | + * @param string $pattern |
|
757 | + */ |
|
742 | 758 | protected function match($pattern, $subject, $split = false) |
743 | 759 | { |
744 | 760 | $sets = []; |
@@ -760,6 +776,9 @@ discard block |
||
760 | 776 | return $sets; |
761 | 777 | } |
762 | 778 | |
779 | + /** |
|
780 | + * @param string $str |
|
781 | + */ |
|
763 | 782 | protected function fixSentence($str) |
764 | 783 | { |
765 | 784 | // TODO fix word wrap |
@@ -768,6 +787,9 @@ discard block |
||
768 | 787 | return strtoupper(substr($str, 0, 1)) . substr($str, 1) . ($str[strlen($str) - 1] != '.' ? '.' : ''); |
769 | 788 | } |
770 | 789 | |
790 | + /** |
|
791 | + * @param string $param |
|
792 | + */ |
|
771 | 793 | protected function getPropParam($prop, $param) |
772 | 794 | { |
773 | 795 | return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]); |
@@ -381,6 +381,10 @@ discard block |
||
381 | 381 | |
382 | 382 | } |
383 | 383 | |
384 | + /** |
|
385 | + * @param string $name |
|
386 | + * @param string $path |
|
387 | + */ |
|
384 | 388 | protected function releaseApplication($name, $path, $version) |
385 | 389 | { |
386 | 390 | $this->stdout("\n"); |
@@ -604,6 +608,9 @@ discard block |
||
604 | 608 | } |
605 | 609 | |
606 | 610 | |
611 | + /** |
|
612 | + * @param string[] $what |
|
613 | + */ |
|
607 | 614 | protected function closeChangelogs($what, $version) |
608 | 615 | { |
609 | 616 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -615,6 +622,9 @@ discard block |
||
615 | 622 | ); |
616 | 623 | } |
617 | 624 | |
625 | + /** |
|
626 | + * @param string[] $what |
|
627 | + */ |
|
618 | 628 | protected function openChangelogs($what, $version) |
619 | 629 | { |
620 | 630 | $headline = "\n$version under development\n"; |
@@ -631,6 +641,9 @@ discard block |
||
631 | 641 | } |
632 | 642 | } |
633 | 643 | |
644 | + /** |
|
645 | + * @param string[] $what |
|
646 | + */ |
|
634 | 647 | protected function resortChangelogs($what, $version) |
635 | 648 | { |
636 | 649 | foreach($this->getChangelogs($what) as $file) { |
@@ -765,6 +778,9 @@ discard block |
||
765 | 778 | $frameworkPath . '/BaseYii.php'); |
766 | 779 | } |
767 | 780 | |
781 | + /** |
|
782 | + * @param string $pattern |
|
783 | + */ |
|
768 | 784 | protected function sed($pattern, $replace, $files) |
769 | 785 | { |
770 | 786 | foreach((array) $files as $file) { |
@@ -797,6 +813,9 @@ discard block |
||
797 | 813 | const MINOR = 'minor'; |
798 | 814 | const PATCH = 'patch'; |
799 | 815 | |
816 | + /** |
|
817 | + * @param string $type |
|
818 | + */ |
|
800 | 819 | protected function getNextVersions(array $versions, $type) |
801 | 820 | { |
802 | 821 | foreach($versions as $k => $v) { |