Completed
Push — 2.1 ( cac446...08cafa )
by Alexander
11:48
created
framework/db/mysql/QueryBuilder.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -251,6 +251,7 @@  discard block
 block discarded – undo
251 251
     /**
252 252
      * @inheritdoc
253 253
      * @since 2.0.8
254
+     * @param string $comment
254 255
      */
255 256
     public function addCommentOnColumn($table, $column, $comment)
256 257
     {
@@ -267,6 +268,7 @@  discard block
 block discarded – undo
267 268
     /**
268 269
      * @inheritdoc
269 270
      * @since 2.0.8
271
+     * @param string $comment
270 272
      */
271 273
     public function addCommentOnTable($table, $comment)
272 274
     {
Please login to merge, or discard this patch.
framework/base/Security.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      * Verifies and decrypts data encrypted with [[encryptByPassword()]].
137 137
      * @param string $data the encrypted data to decrypt
138 138
      * @param string $password the password to use for decryption
139
-     * @return bool|string the decrypted data or false on authentication failure
139
+     * @return false|string the decrypted data or false on authentication failure
140 140
      * @see encryptByPassword()
141 141
      */
142 142
     public function decryptByPassword($data, $password)
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @param string $data the encrypted data to decrypt
150 150
      * @param string $inputKey the input to use for encryption and authentication
151 151
      * @param string $info optional context and application specific information, see [[hkdf()]]
152
-     * @return bool|string the decrypted data or false on authentication failure
152
+     * @return false|string the decrypted data or false on authentication failure
153 153
      * @see encryptByKey()
154 154
      */
155 155
     public function decryptByKey($data, $inputKey, $info = null)
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @param string $secret the decryption password or key
217 217
      * @param string|null $info context/application specific information, @see encrypt()
218 218
      *
219
-     * @return bool|string the decrypted data or false on authentication failure
219
+     * @return false|string the decrypted data or false on authentication failure
220 220
      * @throws InvalidConfigException on OpenSSL not loaded
221 221
      * @throws Exception on OpenSSL error
222 222
      * @see encrypt()
Please login to merge, or discard this patch.
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/Schema.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      * Executes the INSERT command, returning primary key values.
394 394
      * @param string $table the table that new rows will be inserted into.
395 395
      * @param array $columns the column data (name => value) to be inserted into the table.
396
-     * @return array|false primary key values or false if the command fails
396
+     * @return string primary key values or false if the command fails
397 397
      * @since 2.0.4
398 398
      */
399 399
     public function insert($table, $columns)
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
     /**
598 598
      * Returns the cache key for the specified table name.
599 599
      * @param string $name the table name
600
-     * @return mixed the cache key
600
+     * @return string[] the cache key
601 601
      */
602 602
     protected function getCacheKey($name)
603 603
     {
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/base/Application.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -530,7 +530,7 @@
 block discarded – undo
530 530
 
531 531
     /**
532 532
      * Returns the request component.
533
-     * @return \yii\web\Request|\yii\console\Request the request component.
533
+     * @return Request the request component.
534 534
      */
535 535
     public function getRequest()
536 536
     {
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.
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.
framework/web/CacheSession.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     /**
114 114
      * Generates a unique key used for storing session data in cache.
115 115
      * @param string $id session variable name
116
-     * @return mixed a safe cache key associated with the session variable name
116
+     * @return string[] a safe cache key associated with the session variable name
117 117
      */
118 118
     protected function calculateKey($id)
119 119
     {
Please login to merge, or discard this patch.