@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | protected function getAuthCodeKey($aid) |
46 | 46 | { |
47 | - return $this->namespace . ':' . $aid; |
|
47 | + return $this->namespace.':'.$aid; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function updateAttribute() |
53 | 53 | { |
54 | - foreach($this->attributes as $attribute) { |
|
54 | + foreach ($this->attributes as $attribute) { |
|
55 | 55 | if ($this->owner->{$attribute} === null) { |
56 | 56 | $this->owner->{$attribute} = []; |
57 | 57 | } |
@@ -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 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | protected function getJwtKey($jid) |
47 | 47 | { |
48 | - return $this->namespace . ':' . $jid; |
|
48 | + return $this->namespace.':'.$jid; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -32,8 +32,8 @@ |
||
32 | 32 | <div class="row"> |
33 | 33 | <div class="col-md-push-3 col-md-6 col-sm-push-2 col-sm-8 col-xs-12 white-panel"> |
34 | 34 | <div class="alert" role="alert"> |
35 | - <h4 class="alert-heading"><?php echo ($type ? : 'Unkown error'); ?></h4> |
|
36 | - <p><?php echo ($description ? : 'Please check your request'); ?></p> |
|
35 | + <h4 class="alert-heading"><?php echo ($type ?: 'Unkown error'); ?></h4> |
|
36 | + <p><?php echo ($description ?: 'Please check your request'); ?></p> |
|
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | </div> |
@@ -35,9 +35,9 @@ |
||
35 | 35 | <div class="row"> |
36 | 36 | <div class="col-md-push-3 col-md-6 col-sm-push-2 col-sm-8 col-xs-12 white-panel"> |
37 | 37 | <?php echo Html::beginForm(); ?> |
38 | - <?php if(empty($requestedScopes) === false) : ?> |
|
38 | + <?php if (empty($requestedScopes) === false) : ?> |
|
39 | 39 | <ul class="list-group"> |
40 | - <?php foreach($requestedScopes as $scope): ?> |
|
40 | + <?php foreach ($requestedScopes as $scope): ?> |
|
41 | 41 | <li class="list-group-item"> |
42 | 42 | <h4 class="list-group-item-heading"><?php echo $scope['id']; ?></h4> |
43 | 43 | <p class="list-group-item-text"> |
@@ -27,7 +27,7 @@ |
||
27 | 27 | </head> |
28 | 28 | <body> |
29 | 29 | <?php $this->beginBody(); ?> |
30 | - <?php echo $content;?> |
|
30 | + <?php echo $content; ?> |
|
31 | 31 | <?php $this->endBody(); ?> |
32 | 32 | </body> |
33 | 33 |
@@ -163,7 +163,7 @@ |
||
163 | 163 | /** |
164 | 164 | * @var int duration of login time for multiple authorize calls |
165 | 165 | */ |
166 | - public $loginDuration = 60 * 60 * 24 * 30; |
|
166 | + public $loginDuration = 60*60*24*30; |
|
167 | 167 | /** |
168 | 168 | * @inheritdoc |
169 | 169 | */ |
@@ -201,7 +201,7 @@ |
||
201 | 201 | $requestedScopes = []; |
202 | 202 | if (empty($additionalScopes) === false) { |
203 | 203 | $additionalScopes = explode(' ', $additionalScopes); |
204 | - foreach($additionalScopes as $scope) { |
|
204 | + foreach ($additionalScopes as $scope) { |
|
205 | 205 | $dbScope = Scope::findOne($scope); |
206 | 206 | if ($dbScope !== null) { |
207 | 207 | $requestedScopes[] = [ |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | protected function getAuthCodeKey($aid) |
46 | 46 | { |
47 | - return $this->namespace . ':' . $aid; |
|
47 | + return $this->namespace.':'.$aid; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |