Completed
Pull Request — master (#13403)
by Herbert
34:15 queued 30:54
created
framework/helpers/BaseArrayHelper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -459,8 +459,8 @@  discard block
 block discarded – undo
459 459
      * ```
460 460
      *
461 461
      * @param array $array
462
-     * @param string|\Closure $from
463
-     * @param string|\Closure $to
462
+     * @param string $from
463
+     * @param string $to
464 464
      * @param string|\Closure $group
465 465
      * @return array
466 466
      */
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      * To sort by multiple keys, provide an array of keys here.
516 516
      * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`.
517 517
      * When sorting by multiple keys with different sorting directions, use an array of sorting directions.
518
-     * @param int|array $sortFlag the PHP sort flag. Valid values include
518
+     * @param integer $sortFlag the PHP sort flag. Valid values include
519 519
      * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`.
520 520
      * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php)
521 521
      * 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.
framework/helpers/BaseConsole.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
      * - windows without ansicon
577 577
      * - not tty consoles
578 578
      *
579
-     * @param mixed $stream
579
+     * @param resource $stream
580 580
      * @return bool true if the stream supports ANSI colors, otherwise false.
581 581
      */
582 582
     public static function streamSupportsAnsiColors($stream)
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      * @param bool $refresh whether to force checking and not re-use cached size value.
602 602
      * This is useful to detect changing window size while the application is running but may
603 603
      * not get up to date values on every terminal.
604
-     * @return array|bool An array of ($width, $height) or false when it was not able to determine size.
604
+     * @return string An array of ($width, $height) or false when it was not able to determine size.
605 605
      */
606 606
     public static function getScreenSize($refresh = false)
607 607
     {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
      *
808 808
      * @param string $message to print out before waiting for user input
809 809
      * @param bool $default this value is returned if no selection is made.
810
-     * @return bool whether user confirmed
810
+     * @return boolean|null whether user confirmed
811 811
      */
812 812
     public static function confirm($message, $default = false)
813 813
     {
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
@@ -634,7 +634,7 @@
 block discarded – undo
634 634
      * @param string $pattern
635 635
      * @param bool $caseSensitive
636 636
      * @throws \yii\base\InvalidParamException
637
-     * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
637
+     * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
638 638
      */
639 639
     private static function parseExcludePattern($pattern, $caseSensitive)
640 640
     {
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
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
      * Parses date string into UNIX timestamp
309 309
      *
310 310
      * @param string $value string representing date
311
-     * @return int|false a UNIX timestamp or `false` on failure.
311
+     * @return integer a UNIX timestamp or `false` on failure.
312 312
      */
313 313
     protected function parseDateValue($value)
314 314
     {
Please login to merge, or discard this patch.
framework/base/ErrorHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
      * @param string $message the error message.
195 195
      * @param string $file the filename that the error was raised in.
196 196
      * @param int $line the line number the error was raised at.
197
-     * @return bool whether the normal error handler continues.
197
+     * @return null|false whether the normal error handler continues.
198 198
      *
199 199
      * @throws ErrorException
200 200
      */
Please login to merge, or discard this patch.
framework/console/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
      *
285 285
      * @param string $message to echo out before waiting for user input
286 286
      * @param bool $default this value is returned if no selection is made.
287
-     * @return bool whether user confirmed.
287
+     * @return boolean|null whether user confirmed.
288 288
      * Will return true if [[interactive]] is false.
289 289
      */
290 290
     public function confirm($message, $default = false)
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/db/Migration.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * This method contains the logic to be executed when applying this migration.
88 88
      * Child classes may override this method to provide actual migration logic.
89
-     * @return bool return a false value to indicate the migration fails
89
+     * @return false|null return a false value to indicate the migration fails
90 90
      * and should not proceed further. All other return values mean the migration succeeds.
91 91
      */
92 92
     public function up()
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * This method contains the logic to be executed when removing this migration.
116 116
      * The default implementation throws an exception indicating the migration cannot be removed.
117 117
      * Child classes may override this method if the corresponding migrations can be removed.
118
-     * @return bool return a false value to indicate the migration fails
118
+     * @return false|null return a false value to indicate the migration fails
119 119
      * and should not proceed further. All other return values mean the migration succeeds.
120 120
      */
121 121
     public function down()
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * be enclosed within a DB transaction.
156 156
      * Child classes may implement this method instead of [[up()]] if the DB logic
157 157
      * needs to be within a transaction.
158
-     * @return bool return a false value to indicate the migration fails
158
+     * @return boolean|null return a false value to indicate the migration fails
159 159
      * and should not proceed further. All other return values mean the migration succeeds.
160 160
      */
161 161
     public function safeUp()
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * be enclosed within a DB transaction.
169 169
      * Child classes may implement this method instead of [[down()]] if the DB logic
170 170
      * needs to be within a transaction.
171
-     * @return bool return a false value to indicate the migration fails
171
+     * @return boolean|null return a false value to indicate the migration fails
172 172
      * and should not proceed further. All other return values mean the migration succeeds.
173 173
      */
174 174
     public function safeDown()
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      * The method will properly quote the table and column names.
388 388
      * @param string $name the name of the primary key constraint.
389 389
      * @param string $table the table that the primary key constraint will be added to.
390
-     * @param string|array $columns comma separated string or array of columns that the primary key will consist of.
390
+     * @param string[] $columns comma separated string or array of columns that the primary key will consist of.
391 391
      */
392 392
     public function addPrimaryKey($name, $table, $columns)
393 393
     {
@@ -415,9 +415,9 @@  discard block
 block discarded – undo
415 415
      * The method will properly quote the table and column names.
416 416
      * @param string $name the name of the foreign key constraint.
417 417
      * @param string $table the table that the foreign key constraint will be added to.
418
-     * @param string|array $columns the name of the column to that the constraint will be added on. If there are multiple columns, separate them with commas or use an array.
418
+     * @param string $columns the name of the column to that the constraint will be added on. If there are multiple columns, separate them with commas or use an array.
419 419
      * @param string $refTable the table that the foreign key references to.
420
-     * @param string|array $refColumns the name of the column that the foreign key references to. If there are multiple columns, separate them with commas or use an array.
420
+     * @param string $refColumns the name of the column that the foreign key references to. If there are multiple columns, separate them with commas or use an array.
421 421
      * @param string $delete the ON DELETE option. Most DBMS support these options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
422 422
      * @param string $update the ON UPDATE option. Most DBMS support these options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
423 423
      */
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
      * Builds and executes a SQL statement for creating a new index.
447 447
      * @param string $name the name of the index. The name will be properly quoted by the method.
448 448
      * @param string $table the table that the new index will be created for. The table name will be properly quoted by the method.
449
-     * @param string|array $columns the column(s) that should be included in the index. If there are multiple columns, please separate them
449
+     * @param string $columns the column(s) that should be included in the index. If there are multiple columns, please separate them
450 450
      * by commas or use an array. Each column name will be properly quoted by the method. Quoting will be skipped for column names that
451 451
      * include a left parenthesis "(".
452 452
      * @param bool $unique whether to add UNIQUE constraint on the created index.
Please login to merge, or discard this patch.
framework/log/Logger.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * `$categories` and `$excludeCategories` as parameters to retrieve the
197 197
      * results that you are interested in.
198 198
      *
199
-     * @param array $categories list of categories that you are interested in.
199
+     * @param string[] $categories list of categories that you are interested in.
200 200
      * You can use an asterisk at the end of a category to do a prefix match.
201 201
      * For example, 'yii\db\*' will match categories starting with 'yii\db\',
202 202
      * such as 'yii\db\Connection'.
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      * Returns the statistical results of DB queries.
247 247
      * The results returned include the number of SQL statements executed and
248 248
      * the total time spent.
249
-     * @return array the first element indicates the number of SQL statements executed,
249
+     * @return integer[] the first element indicates the number of SQL statements executed,
250 250
      * and the second element the total time spent in SQL execution.
251 251
      */
252 252
     public function getDbProfiling()
Please login to merge, or discard this patch.