Completed
Pull Request — master (#14679)
by Robert
14:06
created
build/controllers/ReleaseController.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
     /**
373 373
      * @param array $what list of items
374
-     * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
374
+     * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
375 375
      * @throws \yii\base\Exception
376 376
      */
377 377
     protected function validateWhat(array $what, $limit = [], $ensureGitClean = true)
@@ -550,6 +550,10 @@  discard block
 block discarded – undo
550 550
         $this->stdout("\n");
551 551
     }
552 552
 
553
+    /**
554
+     * @param string $name
555
+     * @param string $path
556
+     */
553 557
     protected function releaseApplication($name, $path, $version)
554 558
     {
555 559
         $this->stdout("\n");
@@ -650,6 +654,9 @@  discard block
 block discarded – undo
650 654
         Yii::setAlias('@app', $this->_oldAlias);
651 655
     }
652 656
 
657
+    /**
658
+     * @param string $name
659
+     */
653 660
     protected function packageApplication($name, $version, $packagePath)
654 661
     {
655 662
         FileHelper::createDirectory($packagePath);
@@ -811,6 +818,9 @@  discard block
 block discarded – undo
811 818
     }
812 819
 
813 820
 
821
+    /**
822
+     * @param string[] $what
823
+     */
814 824
     protected function closeChangelogs($what, $version)
815 825
     {
816 826
         $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/'));
@@ -822,6 +832,9 @@  discard block
 block discarded – undo
822 832
         );
823 833
     }
824 834
 
835
+    /**
836
+     * @param string[] $what
837
+     */
825 838
     protected function openChangelogs($what, $version)
826 839
     {
827 840
         $headline = "\n$version under development\n";
@@ -978,6 +991,9 @@  discard block
 block discarded – undo
978 991
             $frameworkPath . '/BaseYii.php');
979 992
     }
980 993
 
994
+    /**
995
+     * @param string $pattern
996
+     */
981 997
     protected function sed($pattern, $replace, $files)
982 998
     {
983 999
         foreach ((array) $files as $file) {
@@ -1007,6 +1023,9 @@  discard block
 block discarded – undo
1007 1023
         return $versions;
1008 1024
     }
1009 1025
 
1026
+    /**
1027
+     * @param string $type
1028
+     */
1010 1029
     protected function getNextVersions(array $versions, $type)
1011 1030
     {
1012 1031
         foreach ($versions as $k => $v) {
Please login to merge, or discard this patch.