Completed
Push — master ( 3dcd8d...a6d266 )
by Alexander
127:59 queued 124:17
created
build/controllers/ReleaseController.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
framework/console/controllers/CacheController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
     /**
232 232
      * Prompts user with confirmation if caches should be flushed.
233 233
      * @param array $cachesNames
234
-     * @return bool
234
+     * @return boolean|null
235 235
      */
236 236
     private function confirmFlush($cachesNames)
237 237
     {
Please login to merge, or discard this patch.
framework/console/controllers/FixtureController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      * Prompts user with confirmation if fixtures should be loaded.
311 311
      * @param array $fixtures
312 312
      * @param array $except
313
-     * @return bool
313
+     * @return boolean|null
314 314
      */
315 315
     private function confirmLoad($fixtures, $except)
316 316
     {
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      * Prompts user with confirmation for fixtures that should be unloaded.
343 343
      * @param array $fixtures
344 344
      * @param array $except
345
-     * @return bool
345
+     * @return boolean|null
346 346
      */
347 347
     private function confirmUnload($fixtures, $except)
348 348
     {
Please login to merge, or discard this patch.
framework/helpers/BaseArrayHelper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -459,8 +459,8 @@  discard block
 block discarded – undo
459 459
      * ```
460 460
      *
461 461
      * @param array $array
462
-     * @param string|\Closure $from
463
-     * @param string|\Closure $to
462
+     * @param string $from
463
+     * @param string $to
464 464
      * @param string|\Closure $group
465 465
      * @return array
466 466
      */
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      * To sort by multiple keys, provide an array of keys here.
516 516
      * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`.
517 517
      * When sorting by multiple keys with different sorting directions, use an array of sorting directions.
518
-     * @param int|array $sortFlag the PHP sort flag. Valid values include
518
+     * @param integer $sortFlag the PHP sort flag. Valid values include
519 519
      * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`.
520 520
      * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php)
521 521
      * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags.
Please login to merge, or discard this patch.
framework/helpers/BaseConsole.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
      * - windows without ansicon
577 577
      * - not tty consoles
578 578
      *
579
-     * @param mixed $stream
579
+     * @param resource $stream
580 580
      * @return bool true if the stream supports ANSI colors, otherwise false.
581 581
      */
582 582
     public static function streamSupportsAnsiColors($stream)
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      * @param bool $refresh whether to force checking and not re-use cached size value.
602 602
      * This is useful to detect changing window size while the application is running but may
603 603
      * not get up to date values on every terminal.
604
-     * @return array|bool An array of ($width, $height) or false when it was not able to determine size.
604
+     * @return string An array of ($width, $height) or false when it was not able to determine size.
605 605
      */
606 606
     public static function getScreenSize($refresh = false)
607 607
     {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
      *
808 808
      * @param string $message to print out before waiting for user input
809 809
      * @param bool $default this value is returned if no selection is made.
810
-     * @return bool whether user confirmed
810
+     * @return boolean|null whether user confirmed
811 811
      */
812 812
     public static function confirm($message, $default = false)
813 813
     {
Please login to merge, or discard this patch.
framework/helpers/BaseFileHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -634,7 +634,7 @@
 block discarded – undo
634 634
      * @param string $pattern
635 635
      * @param bool $caseSensitive
636 636
      * @throws \yii\base\InvalidParamException
637
-     * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
637
+     * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
638 638
      */
639 639
     private static function parseExcludePattern($pattern, $caseSensitive)
640 640
     {
Please login to merge, or discard this patch.
framework/validators/DateValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
      * Parses date string into UNIX timestamp
309 309
      *
310 310
      * @param string $value string representing date
311
-     * @return int|false a UNIX timestamp or `false` on failure.
311
+     * @return integer a UNIX timestamp or `false` on failure.
312 312
      */
313 313
     protected function parseDateValue($value)
314 314
     {
Please login to merge, or discard this patch.
framework/base/ErrorHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
      * @param string $message the error message.
195 195
      * @param string $file the filename that the error was raised in.
196 196
      * @param int $line the line number the error was raised at.
197
-     * @return bool whether the normal error handler continues.
197
+     * @return null|false whether the normal error handler continues.
198 198
      *
199 199
      * @throws ErrorException
200 200
      */
Please login to merge, or discard this patch.
framework/console/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
      *
285 285
      * @param string $message to echo out before waiting for user input
286 286
      * @param bool $default this value is returned if no selection is made.
287
-     * @return bool whether user confirmed.
287
+     * @return boolean|null whether user confirmed.
288 288
      * Will return true if [[interactive]] is false.
289 289
      */
290 290
     public function confirm($message, $default = false)
Please login to merge, or discard this patch.