Completed
Pull Request — master (#15047)
by f
09:57
created
framework/console/controllers/BaseMigrateController.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * yii migrate/down all # revert all migrations
205 205
      * ```
206 206
      *
207
-     * @param int|string $limit the number of migrations to be reverted. Defaults to 1,
207
+     * @param integer $limit the number of migrations to be reverted. Defaults to 1,
208 208
      * meaning the last applied migration will be reverted. When value is "all", all migrations will be reverted.
209 209
      * @throws Exception if the number of the steps specified is less than 1.
210 210
      *
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * yii migrate/redo all # redo all migrations
267 267
      * ```
268 268
      *
269
-     * @param int|string $limit the number of migrations to be redone. Defaults to 1,
269
+     * @param integer $limit the number of migrations to be redone. Defaults to 1,
270 270
      * meaning the last applied migration will be redone. When equals "all", all migrations will be redone.
271 271
      * @throws Exception if the number of the steps specified is less than 1.
272 272
      *
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
      * yii migrate/history all # showing the whole history
464 464
      * ```
465 465
      *
466
-     * @param int|string $limit the maximum number of migrations to be displayed.
466
+     * @param integer $limit the maximum number of migrations to be displayed.
467 467
      * If it is "all", the whole migration history will be displayed.
468 468
      * @throws \yii\console\Exception if invalid limit value passed
469 469
      */
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      * yii migrate/new all # showing all new migrations
508 508
      * ```
509 509
      *
510
-     * @param int|string $limit the maximum number of new migrations to be displayed.
510
+     * @param integer $limit the maximum number of new migrations to be displayed.
511 511
      * If it is `all`, all available new migrations will be displayed.
512 512
      * @throws \yii\console\Exception if invalid limit value passed
513 513
      */
Please login to merge, or discard this patch.
framework/db/pgsql/Schema.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
     /**
267 267
      * Loads the column information into a [[ColumnSchema]] object.
268 268
      * @param array $info column information
269
-     * @return ColumnSchema the column schema object
269
+     * @return \yii\db\ColumnSchema the column schema object
270 270
      */
271 271
     protected function loadColumnSchema($info)
272 272
     {
Please login to merge, or discard this patch.
framework/base/Application.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -530,7 +530,7 @@
 block discarded – undo
530 530
 
531 531
     /**
532 532
      * Returns the request component.
533
-     * @return \yii\web\Request|\yii\console\Request the request component.
533
+     * @return Request the request component.
534 534
      */
535 535
     public function getRequest()
536 536
     {
Please login to merge, or discard this patch.
framework/db/Command.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
     /**
244 244
      * Binds a parameter to the SQL statement to be executed.
245
-     * @param string|int $name parameter identifier. For a prepared statement
245
+     * @param string $name parameter identifier. For a prepared statement
246 246
      * using named placeholders, this will be a parameter name of
247 247
      * the form `:name`. For a prepared statement using question mark
248 248
      * placeholders, this will be the 1-indexed position of the parameter.
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     /**
380 380
      * Executes the SQL statement and returns the value of the first column in the first row of data.
381 381
      * This method is best used when only a single value is needed for a query.
382
-     * @return string|null|false the value of the first column in the first row of the query result.
382
+     * @return string the value of the first column in the first row of the query result.
383 383
      * False is returned if there is no value.
384 384
      * @throws Exception execution failed
385 385
      */
Please login to merge, or discard this patch.
framework/console/controllers/MessageController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -622,7 +622,7 @@
 block discarded – undo
622 622
      * Finds out a line of the first non-char PHP token found.
623 623
      *
624 624
      * @param array $tokens
625
-     * @return int|string
625
+     * @return string
626 626
      * @since 2.0.1
627 627
      */
628 628
     protected function getLine($tokens)
Please login to merge, or discard this patch.
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
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 
367 367
     /**
368 368
      * @param array $what list of items
369
-     * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
369
+     * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
370 370
      * @param bool $ensureGitClean
371 371
      * @throws \yii\base\Exception
372 372
      */
@@ -546,6 +546,10 @@  discard block
 block discarded – undo
546 546
         $this->stdout("\n");
547 547
     }
548 548
 
549
+    /**
550
+     * @param string $name
551
+     * @param string $path
552
+     */
549 553
     protected function releaseApplication($name, $path, $version)
550 554
     {
551 555
         $this->stdout("\n");
@@ -648,6 +652,9 @@  discard block
 block discarded – undo
648 652
         Yii::setAlias('@app', $this->_oldAlias);
649 653
     }
650 654
 
655
+    /**
656
+     * @param string $name
657
+     */
651 658
     protected function packageApplication($name, $version, $packagePath)
652 659
     {
653 660
         FileHelper::createDirectory($packagePath);
@@ -809,6 +816,9 @@  discard block
 block discarded – undo
809 816
     }
810 817
 
811 818
 
819
+    /**
820
+     * @param string[] $what
821
+     */
812 822
     protected function closeChangelogs($what, $version)
813 823
     {
814 824
         $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/'));
@@ -820,6 +830,9 @@  discard block
 block discarded – undo
820 830
         );
821 831
     }
822 832
 
833
+    /**
834
+     * @param string[] $what
835
+     */
823 836
     protected function openChangelogs($what, $version)
824 837
     {
825 838
         $headline = "\n$version under development\n";
@@ -981,6 +994,9 @@  discard block
 block discarded – undo
981 994
             $frameworkPath . '/BaseYii.php');
982 995
     }
983 996
 
997
+    /**
998
+     * @param string $pattern
999
+     */
984 1000
     protected function sed($pattern, $replace, $files)
985 1001
     {
986 1002
         foreach ((array) $files as $file) {
@@ -1013,6 +1029,9 @@  discard block
 block discarded – undo
1013 1029
     const MINOR = 'minor';
1014 1030
     const PATCH = 'patch';
1015 1031
 
1032
+    /**
1033
+     * @param string $type
1034
+     */
1016 1035
     protected function getNextVersions(array $versions, $type)
1017 1036
     {
1018 1037
         foreach ($versions as $k => $v) {
Please login to merge, or discard this patch.