@@ -789,7 +789,7 @@ |
||
789 | 789 | * }); |
790 | 790 | * ``` |
791 | 791 | * |
792 | - * @param string|array $url the URL to be redirected to. This can be in one of the following formats: |
|
792 | + * @param string $url the URL to be redirected to. This can be in one of the following formats: |
|
793 | 793 | * |
794 | 794 | * - a string representing a URL (e.g. "http://example.com") |
795 | 795 | * - a string representing a URL alias (e.g. "@example.com") |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use yii\helpers\StringHelper; |
17 | 17 | use yii\helpers\Url; |
18 | 18 | use yii\http\CookieCollection; |
19 | -use yii\http\HeaderCollection; |
|
20 | 19 | use yii\http\MemoryStream; |
21 | 20 | use yii\http\MessageTrait; |
22 | 21 | use yii\http\ResourceStream; |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * stored in session and reconstruct the corresponding identity object, if it has not done so before. |
176 | 176 | * @param bool $autoRenew whether to automatically renew authentication status if it has not been done so before. |
177 | 177 | * This is only useful when [[enableSession]] is true. |
178 | - * @return IdentityInterface|null the identity object associated with the currently logged-in user. |
|
178 | + * @return null|boolean the identity object associated with the currently logged-in user. |
|
179 | 179 | * `null` is returned if the user is not logged in (not authenticated). |
180 | 180 | * @see login() |
181 | 181 | * @see logout() |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user. |
260 | 260 | * If authentication fails or [[login()]] is unsuccessful, it will return null. |
261 | 261 | * @param string $token the access token |
262 | - * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
|
262 | + * @param string $type the type of the token. The value of this parameter depends on the implementation. |
|
263 | 263 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
264 | 264 | * @return IdentityInterface|null the identity associated with the given access token. Null is returned if |
265 | 265 | * the access token is invalid or [[login()]] is unsuccessful. |
@@ -636,7 +636,7 @@ |
||
636 | 636 | * @param string $pattern |
637 | 637 | * @param bool $caseSensitive |
638 | 638 | * @throws \yii\base\InvalidArgumentException |
639 | - * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
639 | + * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
640 | 640 | */ |
641 | 641 | private static function parseExcludePattern($pattern, $caseSensitive) |
642 | 642 | { |
@@ -216,7 +216,7 @@ |
||
216 | 216 | |
217 | 217 | /** |
218 | 218 | * Generates a link tag that refers to an external CSS file. |
219 | - * @param array|string $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
219 | + * @param string|boolean $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
220 | 220 | * @param array $options the tag options in terms of name-value pairs. The following options are specially handled: |
221 | 221 | * |
222 | 222 | * - condition: specifies the conditional comments for IE, e.g., `lt IE 9`. When this is specified, |
@@ -251,6 +251,7 @@ discard block |
||
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 |
||
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 | { |
@@ -136,7 +136,7 @@ discard block |
||
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 |
||
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 |
||
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() |
@@ -204,7 +204,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | */ |
@@ -393,7 +393,7 @@ discard block |
||
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 |
||
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 | { |
@@ -266,7 +266,7 @@ |
||
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 | { |