@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace inblank\activeuser\models\forms; |
4 | 4 | |
5 | 5 | use inblank\activeuser\traits\CommonTrait; |
6 | -use yii; |
|
7 | 6 | use yii\base\Model; |
8 | 7 | use yii\base\Security; |
9 | 8 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Finds an identity by the given ID. |
83 | 83 | * @param string|integer $id the ID to be looked for |
84 | - * @return IdentityInterface the identity object that matches the given ID. |
|
84 | + * @return User|null the identity object that matches the given ID. |
|
85 | 85 | * Null should be returned if such an identity cannot be found |
86 | 86 | * or the identity is not in an active state (disabled, deleted, etc.) |
87 | 87 | */ |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @param mixed $token the token to be looked for |
106 | 106 | * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
107 | 107 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
108 | - * @return IdentityInterface the identity object that matches the given token. |
|
108 | + * @return null|User the identity object that matches the given token. |
|
109 | 109 | * Null should be returned if such an identity cannot be found |
110 | 110 | * or the identity is not in an active state (disabled, deleted, etc.) |
111 | 111 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace inblank\activeuser\traits; |
4 | 4 | |
5 | 5 | use inblank\activeuser\Module; |
6 | -use yii; |
|
7 | 6 | use yii\base\InvalidConfigException; |
8 | 7 | |
9 | 8 | /** |