@@ -16,7 +16,6 @@ |
||
| 16 | 16 | |
| 17 | 17 | use OAuth2\Request as OAuth2Request; |
| 18 | 18 | use OAuth2\Response as OAuth2Response; |
| 19 | -use sweelix\oauth2\server\models\Client; |
|
| 20 | 19 | use sweelix\oauth2\server\models\Scope; |
| 21 | 20 | use sweelix\oauth2\server\Module; |
| 22 | 21 | use yii\web\Controller; |
@@ -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() |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * If this record is the result of a query and the attribute is not loaded, |
| 218 | 218 | * null will be returned. |
| 219 | 219 | * @param string $name the attribute name |
| 220 | - * @return mixed the old attribute value. Null if the attribute is not loaded before |
|
| 220 | + * @return string the old attribute value. Null if the attribute is not loaded before |
|
| 221 | 221 | * or does not exist. |
| 222 | 222 | * @see hasAttribute() |
| 223 | 223 | */ |
@@ -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; |
@@ -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 | */ |
@@ -15,7 +15,6 @@ |
||
| 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\traits\redis\TypeConverter; |
| 20 | 19 | use yii\base\Object; |
| 21 | 20 | use yii\helpers\Json; |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | use sweelix\oauth2\server\interfaces\JtiServiceInterface; |
| 21 | 21 | use yii\db\Exception as DatabaseException; |
| 22 | 22 | use Yii; |
| 23 | -use Exception; |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * This is the jti 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 |