@@ -55,6 +55,7 @@ |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @inheritdoc |
58 | + * @return string |
|
58 | 59 | */ |
59 | 60 | public function formatMessage($message) |
60 | 61 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Check the given requirements, collecting results into internal field. |
61 | 61 | * This method can be invoked several times checking different requirement sets. |
62 | 62 | * Use [[getResult()]] or [[render()]] to get the results. |
63 | - * @param array|string $requirements requirements to be checked. |
|
63 | + * @param string $requirements requirements to be checked. |
|
64 | 64 | * If an array, it is treated as the set of requirements; |
65 | 65 | * If a string, it is treated as the path of the file, which contains the requirements; |
66 | 66 | * @return $this self instance. |
@@ -308,7 +308,7 @@ |
||
308 | 308 | * Parses date string into UNIX timestamp |
309 | 309 | * |
310 | 310 | * @param string $value string representing date |
311 | - * @return integer|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 | { |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * Returns the actual file path for the specified asset. |
327 | 327 | * @param AssetBundle $bundle the asset bundle which the asset file belongs to |
328 | 328 | * @param string $asset the asset path. This should be one of the assets listed in [[js]] or [[css]]. |
329 | - * @return string|boolean the actual file path, or false if the asset is specified as an absolute URL |
|
329 | + * @return string|false the actual file path, or false if the asset is specified as an absolute URL |
|
330 | 330 | */ |
331 | 331 | public function getAssetPath($bundle, $asset) |
332 | 332 | { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | /** |
463 | 463 | * Publishes a file. |
464 | 464 | * @param string $src the asset file to be published |
465 | - * @return array the path and the URL that the asset is published as. |
|
465 | + * @return string[] the path and the URL that the asset is published as. |
|
466 | 466 | * @throws InvalidParamException if the asset to be published does not exist. |
467 | 467 | */ |
468 | 468 | protected function publishFile($src) |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * it is found in the target directory. This option is used only when publishing a directory. |
508 | 508 | * This overrides [[forceCopy]] if set. |
509 | 509 | * |
510 | - * @return array the path directory and the URL that the asset is published as. |
|
510 | + * @return string[] the path directory and the URL that the asset is published as. |
|
511 | 511 | * @throws InvalidParamException if the asset to be published does not exist. |
512 | 512 | */ |
513 | 513 | protected function publishDirectory($src, $options) |
@@ -431,7 +431,7 @@ |
||
431 | 431 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
432 | 432 | * @param string $name the parameter name |
433 | 433 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
434 | - * @return mixed the parameter value |
|
434 | + * @return string the parameter value |
|
435 | 435 | * @see getBodyParams() |
436 | 436 | * @see setBodyParams() |
437 | 437 | */ |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | * @param string $cacheKey generated cache key to store data. |
400 | 400 | * @param string $route the route (e.g. `site/index`). |
401 | 401 | * @param array $params rule params. |
402 | - * @return boolean|string the created URL |
|
402 | + * @return string|false the created URL |
|
403 | 403 | * @see createUrl() |
404 | 404 | * @since 2.0.8 |
405 | 405 | */ |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | /** |
422 | 422 | * Store rule (e.g. [[UrlRule]]) to internal cache |
423 | - * @param $cacheKey |
|
423 | + * @param string $cacheKey |
|
424 | 424 | * @param UrlRuleInterface $rule |
425 | 425 | * @since 2.0.8 |
426 | 426 | */ |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
438 | 438 | * as an absolute route. |
439 | 439 | * |
440 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
440 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
441 | 441 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
442 | 442 | * @param string $scheme the scheme to use for the url (either `http` or `https`). If not specified |
443 | 443 | * the scheme of the current request will be used. |
@@ -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|boolean 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 |
@@ -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 boolean $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() |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user. |
267 | 267 | * If authentication fails or [[login()]] is unsuccessful, it will return null. |
268 | 268 | * @param string $token the access token |
269 | - * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
|
269 | + * @param string $type the type of the token. The value of this parameter depends on the implementation. |
|
270 | 270 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
271 | 271 | * @return IdentityInterface|null the identity associated with the given access token. Null is returned if |
272 | 272 | * the access token is invalid or [[login()]] is unsuccessful. |
@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | use Yii; |
11 | 11 | use yii\base\Action; |
12 | -use yii\base\InvalidParamException; |
|
13 | 12 | use yii\base\ViewNotFoundException; |
14 | 13 | |
15 | 14 | /** |