Completed
Pull Request — 2.1 (#15718)
by Alex
17:00
created
framework/db/sqlite/QueryBuilder.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -466,6 +466,7 @@
 block discarded – undo
466 466
 
467 467
     /**
468 468
      * {@inheritdoc}
469
+     * @param Query $query
469 470
      */
470 471
     public function build($query, $params = [])
471 472
     {
Please login to merge, or discard this patch.
framework/db/mysql/QueryBuilder.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -278,6 +278,7 @@  discard block
 block discarded – undo
278 278
     /**
279 279
      * {@inheritdoc}
280 280
      * @since 2.0.8
281
+     * @param string $comment
281 282
      */
282 283
     public function addCommentOnColumn($table, $column, $comment)
283 284
     {
@@ -294,6 +295,7 @@  discard block
 block discarded – undo
294 295
     /**
295 296
      * {@inheritdoc}
296 297
      * @since 2.0.8
298
+     * @param string $comment
297 299
      */
298 300
     public function addCommentOnTable($table, $comment)
299 301
     {
Please login to merge, or discard this patch.
framework/db/cubrid/QueryBuilder.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -278,6 +278,7 @@  discard block
 block discarded – undo
278 278
     /**
279 279
      * {@inheritdoc}
280 280
      * @since 2.0.8
281
+     * @param string $comment
281 282
      */
282 283
     public function addCommentOnColumn($table, $column, $comment)
283 284
     {
@@ -294,6 +295,7 @@  discard block
 block discarded – undo
294 295
     /**
295 296
      * {@inheritdoc}
296 297
      * @since 2.0.8
298
+     * @param string $comment
297 299
      */
298 300
     public function addCommentOnTable($table, $comment)
299 301
     {
Please login to merge, or discard this patch.
framework/db/pgsql/QueryBuilder.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -245,6 +245,7 @@
 block discarded – undo
245 245
 
246 246
     /**
247 247
      * {@inheritdoc}
248
+     * @param string $table
248 249
      */
249 250
     public function insert($table, $columns, &$params)
250 251
     {
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
@@ -773,7 +773,7 @@
 block discarded – undo
773 773
      * @param string $pattern
774 774
      * @param bool $caseSensitive
775 775
      * @throws InvalidArgumentException
776
-     * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
776
+     * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
777 777
      */
778 778
     private static function parseExcludePattern($pattern, $caseSensitive)
779 779
     {
Please login to merge, or discard this patch.
framework/data/DataFilter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@
 block discarded – undo
350 350
     /**
351 351
      * Detect attribute type from given validator.
352 352
      *
353
-     * @param Validator validator from which to detect attribute type.
353
+     * @param Validator Validator from which to detect attribute type.
354 354
      * @return string|null detected attribute type.
355 355
      * @since 2.0.14
356 356
      */
Please login to merge, or discard this patch.
build/controllers/PhpDocController.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
     /**
583 583
      * remove multi empty lines and trim trailing whitespace.
584 584
      *
585
-     * @param $doc
585
+     * @param string $doc
586 586
      * @return string
587 587
      */
588 588
     protected function cleanDocComment($doc)
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
 
602 602
     /**
603 603
      * Replace property annotations in doc comment.
604
-     * @param $doc
604
+     * @param string $doc
605 605
      * @param $properties
606 606
      * @return string
607 607
      */
@@ -768,6 +768,9 @@  discard block
 block discarded – undo
768 768
         return [$className, $phpdoc];
769 769
     }
770 770
 
771
+    /**
772
+     * @param string $pattern
773
+     */
771 774
     protected function match($pattern, $subject, $split = false)
772 775
     {
773 776
         $sets = [];
@@ -792,6 +795,9 @@  discard block
 block discarded – undo
792 795
         return $sets;
793 796
     }
794 797
 
798
+    /**
799
+     * @param string $str
800
+     */
795 801
     protected function fixSentence($str)
796 802
     {
797 803
         // TODO fix word wrap
@@ -802,6 +808,9 @@  discard block
 block discarded – undo
802 808
         return strtoupper(substr($str, 0, 1)) . substr($str, 1) . ($str[\strlen($str) - 1] != '.' ? '.' : '');
803 809
     }
804 810
 
811
+    /**
812
+     * @param string $param
813
+     */
805 814
     protected function getPropParam($prop, $param)
806 815
     {
807 816
         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   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 
369 369
     /**
370 370
      * @param array $what list of items
371
-     * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
371
+     * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
372 372
      * @param bool $ensureGitClean
373 373
      * @throws \yii\base\Exception
374 374
      */
@@ -548,6 +548,10 @@  discard block
 block discarded – undo
548 548
         $this->stdout("\n");
549 549
     }
550 550
 
551
+    /**
552
+     * @param string $name
553
+     * @param string $path
554
+     */
551 555
     protected function releaseApplication($name, $path, $version)
552 556
     {
553 557
         $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";
@@ -987,6 +1000,9 @@  discard block
 block discarded – undo
987 1000
         );
988 1001
     }
989 1002
 
1003
+    /**
1004
+     * @param string $pattern
1005
+     */
990 1006
     protected function sed($pattern, $replace, $files)
991 1007
     {
992 1008
         foreach ((array) $files as $file) {
@@ -1020,6 +1036,9 @@  discard block
 block discarded – undo
1020 1036
     const MINOR = 'minor';
1021 1037
     const PATCH = 'patch';
1022 1038
 
1039
+    /**
1040
+     * @param string $type
1041
+     */
1023 1042
     protected function getNextVersions(array $versions, $type)
1024 1043
     {
1025 1044
         foreach ($versions as $k => $v) {
Please login to merge, or discard this patch.
framework/db/mssql/Schema.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     /**
94 94
      * Resolves the table name and schema name (if any).
95 95
      * @param string $name the table name
96
-     * @return TableSchema resolved table, schema, etc. names.
96
+     * @return string|null resolved table, schema, etc. names.
97 97
      */
98 98
     protected function resolveTableName($name)
99 99
     {
Please login to merge, or discard this patch.