Completed
Pull Request — master (#14679)
by Robert
25:20 queued 10:19
created
framework/i18n/MessageFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     /**
53 53
      * Get the error code from the last operation.
54 54
      * @link http://php.net/manual/en/messageformatter.geterrorcode.php
55
-     * @return string Code of the last error.
55
+     * @return integer Code of the last error.
56 56
      */
57 57
     public function getErrorCode()
58 58
     {
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
@@ -321,7 +321,7 @@
 block discarded – undo
321 321
      * Parses date string into UNIX timestamp.
322 322
      *
323 323
      * @param string $value string representing date
324
-     * @return int|false a UNIX timestamp or `false` on failure.
324
+     * @return integer a UNIX timestamp or `false` on failure.
325 325
      */
326 326
     protected function parseDateValue($value)
327 327
     {
Please login to merge, or discard this patch.
framework/web/UrlManager.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      * @param string $cacheKey generated cache key to store data.
453 453
      * @param string $route the route (e.g. `site/index`).
454 454
      * @param array $params rule params.
455
-     * @return bool|string the created URL
455
+     * @return string|false the created URL
456 456
      * @see createUrl()
457 457
      * @since 2.0.8
458 458
      */
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 
474 474
     /**
475 475
      * Store rule (e.g. [[UrlRule]]) to internal cache.
476
-     * @param $cacheKey
476
+     * @param string $cacheKey
477 477
      * @param UrlRuleInterface $rule
478 478
      * @since 2.0.8
479 479
      */
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route
491 491
      * as an absolute route.
492 492
      *
493
-     * @param string|array $params use a string to represent a route (e.g. `site/index`),
493
+     * @param string[] $params use a string to represent a route (e.g. `site/index`),
494 494
      * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`).
495 495
      * @param string|null $scheme the scheme to use for the URL (either `http`, `https` or empty string
496 496
      * for protocol-relative URL).
Please login to merge, or discard this patch.
build/controllers/ReleaseController.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 
374 374
     /**
375 375
      * @param array $what list of items
376
-     * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
376
+     * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
377 377
      * @param bool $ensureGitClean
378 378
      * @throws \yii\base\Exception
379 379
      */
@@ -553,6 +553,10 @@  discard block
 block discarded – undo
553 553
         $this->stdout("\n");
554 554
     }
555 555
 
556
+    /**
557
+     * @param string $name
558
+     * @param string $path
559
+     */
556 560
     protected function releaseApplication($name, $path, $version)
557 561
     {
558 562
         $this->stdout("\n");
@@ -653,6 +657,9 @@  discard block
 block discarded – undo
653 657
         Yii::setAlias('@app', $this->_oldAlias);
654 658
     }
655 659
 
660
+    /**
661
+     * @param string $name
662
+     */
656 663
     protected function packageApplication($name, $version, $packagePath)
657 664
     {
658 665
         FileHelper::createDirectory($packagePath);
@@ -814,6 +821,9 @@  discard block
 block discarded – undo
814 821
     }
815 822
 
816 823
 
824
+    /**
825
+     * @param string[] $what
826
+     */
817 827
     protected function closeChangelogs($what, $version)
818 828
     {
819 829
         $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/'));
@@ -825,6 +835,9 @@  discard block
 block discarded – undo
825 835
         );
826 836
     }
827 837
 
838
+    /**
839
+     * @param string[] $what
840
+     */
828 841
     protected function openChangelogs($what, $version)
829 842
     {
830 843
         $headline = "\n$version under development\n";
@@ -989,6 +1002,9 @@  discard block
 block discarded – undo
989 1002
             $frameworkPath . '/BaseYii.php');
990 1003
     }
991 1004
 
1005
+    /**
1006
+     * @param string $pattern
1007
+     */
992 1008
     protected function sed($pattern, $replace, $files)
993 1009
     {
994 1010
         foreach ((array) $files as $file) {
@@ -1019,6 +1035,9 @@  discard block
 block discarded – undo
1019 1035
         return $versions;
1020 1036
     }
1021 1037
 
1038
+    /**
1039
+     * @param string $type
1040
+     */
1022 1041
     protected function getNextVersions(array $versions, $type)
1023 1042
     {
1024 1043
         foreach ($versions as $k => $v) {
Please login to merge, or discard this patch.