@@ -140,13 +140,13 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | $storages = []; |
| 143 | - foreach(array_keys($this->storageMap) as $name) { |
|
| 143 | + foreach (array_keys($this->storageMap) as $name) { |
|
| 144 | 144 | $storages[$name] = Yii::$container->get($name); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | $grantTypes = []; |
| 148 | - foreach($this->grantTypes as $name => $options) { |
|
| 149 | - if(!isset($storages[$name]) || empty($options['class'])) { |
|
| 148 | + foreach ($this->grantTypes as $name => $options) { |
|
| 149 | + if (!isset($storages[$name]) || empty($options['class'])) { |
|
| 150 | 150 | throw new InvalidConfigException( |
| 151 | 151 | 'Invalid grant types configuration.' |
| 152 | 152 | ); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * @var string the unique id for the oauth2 module |
| 17 | 17 | */ |
| 18 | - public string|Module $oauth2Module = 'oauth2'; |
|
| 18 | + public string | Module $oauth2Module = 'oauth2'; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @inheritdoc |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | protected function ensureSuccessResponse(): void |
| 56 | 56 | { |
| 57 | 57 | $response = $this->oauth2Module->getResponse(); |
| 58 | - if($response === null |
|
| 58 | + if ($response === null |
|
| 59 | 59 | || $response->isInformational() |
| 60 | 60 | || $response->isSuccessful() |
| 61 | 61 | || $response->isRedirection() |