@@ -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 1.0.0 |
| 90 | 91 | */ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | public function updateAttribute() |
| 58 | 58 | { |
| 59 | - foreach($this->attributes as $attribute) { |
|
| 59 | + foreach ($this->attributes as $attribute) { |
|
| 60 | 60 | if (empty($this->owner->{$attribute}) === true) { |
| 61 | 61 | $this->owner->{$attribute} = []; |
| 62 | 62 | } elseif (is_array($this->owner->{$attribute}) === false) { |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | $headers = $oauthResponse->getHttpHeaders(); |
| 177 | - foreach($headers as $name => $value) |
|
| 177 | + foreach ($headers as $name => $value) |
|
| 178 | 178 | { |
| 179 | 179 | $response->headers->set($name, $value); |
| 180 | 180 | } |
@@ -224,7 +224,7 @@ |
||
| 224 | 224 | $requestedScopes = []; |
| 225 | 225 | if (empty($additionalScopes) === false) { |
| 226 | 226 | $additionalScopes = explode(' ', $additionalScopes); |
| 227 | - foreach($additionalScopes as $scope) { |
|
| 227 | + foreach ($additionalScopes as $scope) { |
|
| 228 | 228 | $dbScope = Scope::findOne($scope); |
| 229 | 229 | if ($dbScope !== null) { |
| 230 | 230 | $requestedScopes[] = $dbScope; |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | /** |
| 176 | 176 | * @var int duration of login time for multiple authorize calls |
| 177 | 177 | */ |
| 178 | - public $loginDuration = 60 * 60 * 24 * 30; |
|
| 178 | + public $loginDuration = 60*60*24*30; |
|
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @var false|array Cors configuration if allowed @see http://www.yiiframework.com/doc-2.0/yii-filters-cors.html |
@@ -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"> |