Completed
Pull Request — 2.1-date-format-consistency (#11234)
by
unknown
40:11
created
framework/db/oci/Schema.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
     /**
161 161
      * Sequence name of table
162 162
      *
163
-     * @param $tablename
163
+     * @param string $tablename
164 164
      * @internal param \yii\db\TableSchema $table ->name the table schema
165 165
      * @return string whether the sequence exists
166 166
      */
Please login to merge, or discard this patch.
framework/helpers/BaseArrayHelper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -348,8 +348,8 @@
 block discarded – undo
348 348
      * ~~~
349 349
      *
350 350
      * @param array $array
351
-     * @param string|\Closure $from
352
-     * @param string|\Closure $to
351
+     * @param string $from
352
+     * @param string $to
353 353
      * @param string|\Closure $group
354 354
      * @return array
355 355
      */
Please login to merge, or discard this patch.
framework/helpers/BaseConsole.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
      * @param boolean $refresh whether to force checking and not re-use cached size value.
600 600
      * This is useful to detect changing window size while the application is running but may
601 601
      * not get up to date values on every terminal.
602
-     * @return array|boolean An array of ($width, $height) or false when it was not able to determine size.
602
+     * @return string An array of ($width, $height) or false when it was not able to determine size.
603 603
      */
604 604
     public static function getScreenSize($refresh = false)
605 605
     {
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
      * Prints a string to STDOUT.
691 691
      *
692 692
      * @param string $string the string to print
693
-     * @return int|boolean Number of bytes printed or false on error
693
+     * @return integer Number of bytes printed or false on error
694 694
      */
695 695
     public static function stdout($string)
696 696
     {
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
      * Prints a string to STDERR.
702 702
      *
703 703
      * @param string $string the string to print
704
-     * @return int|boolean Number of bytes printed or false on error
704
+     * @return integer Number of bytes printed or false on error
705 705
      */
706 706
     public static function stderr($string)
707 707
     {
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
      * Prints text to STDOUT appended with a carriage return (PHP_EOL).
729 729
      *
730 730
      * @param string $string the text to print
731
-     * @return integer|boolean number of bytes printed or false on error.
731
+     * @return integer number of bytes printed or false on error.
732 732
      */
733 733
     public static function output($string = null)
734 734
     {
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
      * Prints text to STDERR appended with a carriage return (PHP_EOL).
740 740
      *
741 741
      * @param string $string the text to print
742
-     * @return integer|boolean number of bytes printed or false on error.
742
+     * @return integer number of bytes printed or false on error.
743 743
      */
744 744
     public static function error($string = null)
745 745
     {
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
      *
806 806
      * @param string $message to print out before waiting for user input
807 807
      * @param boolean $default this value is returned if no selection is made.
808
-     * @return boolean whether user confirmed
808
+     * @return boolean|null whether user confirmed
809 809
      */
810 810
     public static function confirm($message, $default = false)
811 811
     {
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
      * @param integer $total the total value of items that are to be done.
889 889
      * @param string $prefix an optional string to display before the progress bar.
890 890
      * Default to empty string which results in no prefix to be displayed.
891
-     * @param integer|boolean $width optional width of the progressbar. This can be an integer representing
891
+     * @param boolean $width optional width of the progressbar. This can be an integer representing
892 892
      * the number of characters to display for the progress bar or a float between 0 and 1 representing the
893 893
      * percentage of screen with the progress bar may take. It can also be set to false to disable the
894 894
      * bar and only show progress information like percent, number of items and ETA.
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
@@ -597,7 +597,7 @@
 block discarded – undo
597 597
      * @param string $pattern
598 598
      * @param boolean $caseSensitive
599 599
      * @throws \yii\base\InvalidParamException
600
-     * @return array with keys: (string) pattern, (int) flags, (int|boolean)firstWildcard
600
+     * @return string with keys: (string) pattern, (int) flags, (int|boolean)firstWildcard
601 601
      */
602 602
     private static function parseExcludePattern($pattern, $caseSensitive)
603 603
     {
Please login to merge, or discard this patch.
framework/helpers/BaseHtml.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
     /**
204 204
      * Generates a link tag that refers to an external CSS file.
205
-     * @param array|string $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]].
205
+     * @param string|boolean $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]].
206 206
      * @param array $options the tag options in terms of name-value pairs. The following option is specially handled:
207 207
      *
208 208
      * - condition: specifies the conditional comments for IE, e.g., `lt IE 9`. When this is specified,
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
     /**
282 282
      * Generates a form start tag.
283
-     * @param array|string $action the form action URL. This parameter will be processed by [[Url::to()]].
283
+     * @param string $action the form action URL. This parameter will be processed by [[Url::to()]].
284 284
      * @param string $method the form submission method, such as "post", "get", "put", "delete" (case-insensitive).
285 285
      * Since most browsers only support "post" and "get", if other methods are given, they will
286 286
      * be simulated using "post", and a hidden input will be added which contains the actual method type.
Please login to merge, or discard this patch.