Completed
Push — php7-remove-phpunit-compat ( 9a3480...8378c0 )
by Alexander
11:59
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/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.
build/controllers/PhpDocController.php 1 patch
Doc Comments   +20 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
         return array_merge(parent::options($actionID), ['updateFiles', 'skipFrameworkRequirements']);
114 114
     }
115 115
 
116
+    /**
117
+     * @param string|null $root
118
+     */
116 119
     protected function findFiles($root, $needsInclude = true)
117 120
     {
118 121
         $except = [];
@@ -233,6 +236,9 @@  discard block
 block discarded – undo
233 236
         return FileHelper::findFiles($root, $options);
234 237
     }
235 238
 
239
+    /**
240
+     * @param string $extensionPath
241
+     */
236 242
     private function setUpExtensionAliases($extensionPath)
237 243
     {
238 244
         foreach (scandir($extensionPath) as $extension) {
@@ -340,6 +346,9 @@  discard block
 block discarded – undo
340 346
         }
341 347
     }
342 348
 
349
+    /**
350
+     * @param string $line
351
+     */
343 352
     protected function fixParamTypes($line)
344 353
     {
345 354
         return preg_replace_callback('~@(param|return) ([\w\\|]+)~i', function ($matches) {
@@ -553,7 +562,7 @@  discard block
 block discarded – undo
553 562
     /**
554 563
      * remove multi empty lines and trim trailing whitespace
555 564
      *
556
-     * @param $doc
565
+     * @param string $doc
557 566
      * @return string
558 567
      */
559 568
     protected function cleanDocComment($doc)
@@ -572,7 +581,7 @@  discard block
 block discarded – undo
572 581
 
573 582
     /**
574 583
      * Replace property annotations in doc comment
575
-     * @param $doc
584
+     * @param string $doc
576 585
      * @param $properties
577 586
      * @return string
578 587
      */
@@ -739,6 +748,9 @@  discard block
 block discarded – undo
739 748
         return [$className, $phpdoc];
740 749
     }
741 750
 
751
+    /**
752
+     * @param string $pattern
753
+     */
742 754
     protected function match($pattern, $subject, $split = false)
743 755
     {
744 756
         $sets = [];
@@ -762,6 +774,9 @@  discard block
 block discarded – undo
762 774
         return $sets;
763 775
     }
764 776
 
777
+    /**
778
+     * @param string $str
779
+     */
765 780
     protected function fixSentence($str)
766 781
     {
767 782
         // TODO fix word wrap
@@ -771,6 +786,9 @@  discard block
 block discarded – undo
771 786
         return strtoupper(substr($str, 0, 1)) . substr($str, 1) . ($str[strlen($str) - 1] != '.' ? '.' : '');
772 787
     }
773 788
 
789
+    /**
790
+     * @param string $param
791
+     */
774 792
     protected function getPropParam($prop, $param)
775 793
     {
776 794
         return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]);
Please login to merge, or discard this patch.
build/controllers/ReleaseController.php 1 patch
Doc Comments   +21 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
      * @throws \yii\base\Exception
371 371
      */
372 372
     protected function validateWhat(array $what, $limit = [], $ensureGitClean = true)
@@ -545,6 +545,10 @@  discard block
 block discarded – undo
545 545
         $this->stdout("\n");
546 546
     }
547 547
 
548
+    /**
549
+     * @param string $name
550
+     * @param string $path
551
+     */
548 552
     protected function releaseApplication($name, $path, $version)
549 553
     {
550 554
         $this->stdout("\n");
@@ -647,6 +651,9 @@  discard block
 block discarded – undo
647 651
         Yii::setAlias('@app', $this->_oldAlias);
648 652
     }
649 653
 
654
+    /**
655
+     * @param string $name
656
+     */
650 657
     protected function packageApplication($name, $version, $packagePath)
651 658
     {
652 659
         FileHelper::createDirectory($packagePath);
@@ -808,6 +815,9 @@  discard block
 block discarded – undo
808 815
     }
809 816
 
810 817
 
818
+    /**
819
+     * @param string[] $what
820
+     */
811 821
     protected function closeChangelogs($what, $version)
812 822
     {
813 823
         $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/'));
@@ -819,6 +829,9 @@  discard block
 block discarded – undo
819 829
         );
820 830
     }
821 831
 
832
+    /**
833
+     * @param string[] $what
834
+     */
822 835
     protected function openChangelogs($what, $version)
823 836
     {
824 837
         $headline = "\n$version under development\n";
@@ -880,6 +893,7 @@  discard block
 block discarded – undo
880 893
 
881 894
     /**
882 895
      * Ensure sorting of the changelog lines
896
+     * @param string[] $changelog
883 897
      */
884 898
     protected function resortChangelog($changelog)
885 899
     {
@@ -975,6 +989,9 @@  discard block
 block discarded – undo
975 989
             $frameworkPath . '/BaseYii.php');
976 990
     }
977 991
 
992
+    /**
993
+     * @param string $pattern
994
+     */
978 995
     protected function sed($pattern, $replace, $files)
979 996
     {
980 997
         foreach ((array) $files as $file) {
@@ -1007,6 +1024,9 @@  discard block
 block discarded – undo
1007 1024
     const MINOR = 'minor';
1008 1025
     const PATCH = 'patch';
1009 1026
 
1027
+    /**
1028
+     * @param string $type
1029
+     */
1010 1030
     protected function getNextVersions(array $versions, $type)
1011 1031
     {
1012 1032
         foreach ($versions as $k => $v) {
Please login to merge, or discard this patch.
framework/helpers/BaseArrayHelper.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
      * ```
447 447
      *
448 448
      * @param array $array the array that needs to be indexed or grouped
449
-     * @param string|\Closure|null $key the column name or anonymous function which result will be used to index the array
449
+     * @param null|string $key the column name or anonymous function which result will be used to index the array
450 450
      * @param string|string[]|\Closure[]|null $groups the array of keys, that will be used to group the input array
451 451
      * by one or more keys. If the $key attribute or its value for the particular element is null and $groups is not
452 452
      * defined, the array element will be discarded. Otherwise, if $groups is specified, array element will be added
@@ -566,8 +566,8 @@  discard block
 block discarded – undo
566 566
      * ```
567 567
      *
568 568
      * @param array $array
569
-     * @param string|\Closure $from
570
-     * @param string|\Closure $to
569
+     * @param string $from
570
+     * @param string $to
571 571
      * @param string|\Closure $group
572 572
      * @return array
573 573
      */
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
      * To sort by multiple keys, provide an array of keys here.
623 623
      * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`.
624 624
      * When sorting by multiple keys with different sorting directions, use an array of sorting directions.
625
-     * @param int|array $sortFlag the PHP sort flag. Valid values include
625
+     * @param integer $sortFlag the PHP sort flag. Valid values include
626 626
      * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`.
627 627
      * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php)
628 628
      * 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.