@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * @param UrlManager $manager the URL manager |
335 | 335 | * @param string $route the route. It should not have slashes at the beginning or the end. |
336 | 336 | * @param array $params the parameters |
337 | - * @return string|bool the created URL, or `false` if this rule cannot be used for creating this URL. |
|
337 | + * @return false|string the created URL, or `false` if this rule cannot be used for creating this URL. |
|
338 | 338 | */ |
339 | 339 | public function createUrl($manager, $route, $params) |
340 | 340 | { |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
426 | 426 | * Used in [[parseRequest()]], [[createUrl()]]. |
427 | 427 | * |
428 | - * @param array $matches result of `preg_match()` call |
|
428 | + * @param string[] $matches result of `preg_match()` call |
|
429 | 429 | * @return array input array with replaced placeholder keys |
430 | 430 | * @see placeholders |
431 | 431 | * @since 2.0.7 |
@@ -114,7 +114,7 @@ |
||
114 | 114 | /** |
115 | 115 | * Returns a single column from the next row of a result set. |
116 | 116 | * @param int $columnIndex zero-based column index |
117 | - * @return mixed the column of the current row, false if no more rows available |
|
117 | + * @return string the column of the current row, false if no more rows available |
|
118 | 118 | */ |
119 | 119 | public function readColumn($columnIndex) |
120 | 120 | { |
@@ -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") |
@@ -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. |
@@ -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, |
@@ -132,7 +132,7 @@ |
||
132 | 132 | |
133 | 133 | /** |
134 | 134 | * Returns the cached content if available. |
135 | - * @return string|false the cached content. False is returned if valid content is not found in the cache. |
|
135 | + * @return string|boolean the cached content. False is returned if valid content is not found in the cache. |
|
136 | 136 | */ |
137 | 137 | public function getCachedContent() |
138 | 138 | { |
@@ -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() |
@@ -379,7 +379,7 @@ |
||
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 | */ |
@@ -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 | */ |