@@ -18,7 +18,6 @@ |
||
18 | 18 | use yii\base\InvalidParamException; |
19 | 19 | use yii\base\Model; |
20 | 20 | use yii\base\ModelEvent; |
21 | -use Yii; |
|
22 | 21 | use Exception; |
23 | 22 | use yii\base\NotSupportedException; |
24 | 23 | use yii\helpers\Inflector; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | /** |
120 | 120 | * Returns the key value of the object |
121 | - * @return mixed|null |
|
121 | + * @return string |
|
122 | 122 | * @since XXX |
123 | 123 | */ |
124 | 124 | public function getKey() |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | /** |
131 | 131 | * Returns the old key value of the object |
132 | - * @return mixed|null |
|
132 | + * @return string |
|
133 | 133 | * @since XXX |
134 | 134 | */ |
135 | 135 | public function getOldKey() |
@@ -85,6 +85,7 @@ |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param mixed $config |
88 | + * @param \yii\base\Module|null $module |
|
88 | 89 | * @return array Oauth server configuration |
89 | 90 | * @since XXX |
90 | 91 | */ |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use sweelix\oauth2\server\interfaces\JwtServiceInterface; |
21 | 21 | use yii\db\Exception as DatabaseException; |
22 | 22 | use Yii; |
23 | -use Exception; |
|
24 | 23 | |
25 | 24 | /** |
26 | 25 | * This is the jwt service for redis |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use sweelix\oauth2\server\interfaces\JwtServiceInterface; |
21 | 21 | use yii\db\Exception as DatabaseException; |
22 | 22 | use Yii; |
23 | -use Exception; |
|
24 | 23 | |
25 | 24 | /** |
26 | 25 | * This is the jwt service for redis |
@@ -15,14 +15,12 @@ |
||
15 | 15 | namespace sweelix\oauth2\server\services\redis; |
16 | 16 | |
17 | 17 | use sweelix\oauth2\server\interfaces\BaseModelInterface; |
18 | -use sweelix\oauth2\server\models\BaseModel; |
|
19 | 18 | use sweelix\oauth2\server\Module; |
20 | 19 | use sweelix\oauth2\server\traits\redis\TypeConverter; |
21 | 20 | use yii\base\Object; |
22 | 21 | use yii\di\Instance; |
23 | 22 | use yii\helpers\Json; |
24 | 23 | use yii\redis\Connection; |
25 | -use Yii; |
|
26 | 24 | |
27 | 25 | /** |
28 | 26 | * This is the base service for redis |