Completed
Pull Request — 2.1-date-format-consistency (#11234)
by
unknown
40:11
created
extensions/sphinx/ActiveRecord.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
     /**
321 321
      * Returns the list of all attribute names of the model.
322 322
      * The default implementation will return all column names of the table associated with this AR class.
323
-     * @return array list of attribute names.
323
+     * @return integer[] list of attribute names.
324 324
      */
325 325
     public function attributes()
326 326
     {
Please login to merge, or discard this patch.
extensions/sphinx/QueryBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1111,7 +1111,7 @@
 block discarded – undo
1111 1111
     }
1112 1112
 
1113 1113
     /**
1114
-     * @param array $indexes index names.
1114
+     * @param string[] $indexes index names.
1115 1115
      * @return IndexSchema[] index schemas.
1116 1116
      */
1117 1117
     private function getIndexSchemas($indexes)
Please login to merge, or discard this patch.
extensions/swiftmailer/Mailer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 
93 93
     /**
94
-     * @return array|\Swift_Mailer Swift mailer instance or array configuration.
94
+     * @return \Swift_Mailer Swift mailer instance or array configuration.
95 95
      */
96 96
     public function getSwiftMailer()
97 97
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-     * @return array|\Swift_Transport
118
+     * @return \Swift_Transport
119 119
      */
120 120
     public function getTransport()
121 121
     {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * Creates Swift library object, from given array configuration.
183 183
      * @param array $config object configuration
184
-     * @return Object created object
184
+     * @return \Swift_Events_EventListener created object
185 185
      * @throws \yii\base\InvalidConfigException on invalid configuration.
186 186
      */
187 187
     protected function createSwiftObject(array $config)
Please login to merge, or discard this patch.
framework/base/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
      * of module IDs, controller ID and action ID. If the route starts with a slash '/', the parsing of
171 171
      * the route will start from the application; otherwise, it will start from the parent module of this controller.
172 172
      * @param string $route the route to be handled, e.g., 'view', 'comment/view', '/admin/comment/view'.
173
-     * @param array $params the parameters to be passed to the action.
173
+     * @param string[] $params the parameters to be passed to the action.
174 174
      * @return mixed the result of the action.
175 175
      * @see runAction()
176 176
      */
Please login to merge, or discard this patch.
framework/base/Model.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
      * $model->validators[] = $newValidator;
379 379
      * ~~~
380 380
      *
381
-     * @return ArrayObject|\yii\validators\Validator[] all the validators declared in the model.
381
+     * @return ArrayObject all the validators declared in the model.
382 382
      */
383 383
     public function getValidators()
384 384
     {
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
      * @param array $names list of attributes whose value needs to be returned.
627 627
      * Defaults to null, meaning all attributes listed in [[attributes()]] will be returned.
628 628
      * If it is an array, only the attributes in the array will be returned.
629
-     * @param array $except list of attributes whose value should NOT be returned.
629
+     * @param string[] $except list of attributes whose value should NOT be returned.
630 630
      * @return array attribute values (name => value).
631 631
      */
632 632
     public function getAttributes($names = null, $except = [])
Please login to merge, or discard this patch.
framework/caching/MemCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 
116 116
     /**
117 117
      * @param \Memcache|\Memcached $cache
118
-     * @param array $servers
118
+     * @param MemCacheServer[] $servers
119 119
      * @throws InvalidConfigException
120 120
      */
121 121
     protected function addServers($cache, $servers)
Please login to merge, or discard this patch.
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.