| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -1,6 +1,6 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -79,21 +79,21 @@ discard block | ||
| 79 | 79 | |
| 80 | 80 |                  switch ($value['type']) { | 
| 81 | 81 | case 'array': | 
| 82 | - $arr = (array) $data[$value['attr']]; | |
| 82 | + $arr = (array)$data[$value['attr']]; | |
| 83 | 83 | unset($arr['count']); | 
| 84 | 84 | $attrs[$attr] = $arr; | 
| 85 | 85 | |
| 86 | 86 | break; | 
| 87 | 87 | case 'string': | 
| 88 | - $attrs[$attr] = (string) $store; | |
| 88 | + $attrs[$attr] = (string)$store; | |
| 89 | 89 | |
| 90 | 90 | break; | 
| 91 | 91 | case 'int': | 
| 92 | - $attrs[$attr] = (int) $store; | |
| 92 | + $attrs[$attr] = (int)$store; | |
| 93 | 93 | |
| 94 | 94 | break; | 
| 95 | 95 | case 'bool': | 
| 96 | - $attrs[$attr] = (bool) $store; | |
| 96 | + $attrs[$attr] = (bool)$store; | |
| 97 | 97 | |
| 98 | 98 | break; | 
| 99 | 99 | default: | 
| @@ -198,7 +198,7 @@ discard block | ||
| 198 | 198 | } | 
| 199 | 199 | |
| 200 | 200 |          $this->logger->debug('fetch user attributes from userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ | 
| 201 | - 'category' => get_class($this), | |
| 201 | + 'category' => get_class($this), | |
| 202 | 202 | ]); | 
| 203 | 203 | |
| 204 | 204 | $url = $discovery['userinfo_endpoint'].'?access_token='.$this->access_token; | 
| @@ -213,13 +213,13 @@ discard block | ||
| 213 | 213 |          if (200 === $code) { | 
| 214 | 214 | $attributes = json_decode($result, true); | 
| 215 | 215 |              $this->logger->debug('successfully requested user attributes from userinfo_endpoint', [ | 
| 216 | - 'category' => get_class($this), | |
| 216 | + 'category' => get_class($this), | |
| 217 | 217 | ]); | 
| 218 | 218 | |
| 219 | 219 | return $this->attributes = $attributes; | 
| 220 | 220 | } | 
| 221 | 221 |          $this->logger->error('failed requesting user attributes from userinfo_endpoint, status code ['.$code.']', [ | 
| 222 | - 'category' => get_class($this), | |
| 222 | + 'category' => get_class($this), | |
| 223 | 223 | ]); | 
| 224 | 224 | |
| 225 | 225 |          throw new Exception('failed requesting user attribute from userinfo_endpoint'); | 
| @@ -236,7 +236,7 @@ discard block | ||
| 236 | 236 |      { | 
| 237 | 237 |          if ($this->token_validation_url) { | 
| 238 | 238 |              $this->logger->debug('validate oauth2 token via rfc7662 token validation endpoint ['.$this->token_validation_url.']', [ | 
| 239 | - 'category' => get_class($this), | |
| 239 | + 'category' => get_class($this), | |
| 240 | 240 | ]); | 
| 241 | 241 | |
| 242 | 242 |              $url = str_replace('{token}', $token, $this->token_validation_url); | 
| @@ -247,7 +247,7 @@ discard block | ||
| 247 | 247 | } | 
| 248 | 248 | |
| 249 | 249 |              $this->logger->debug('validate token via openid-connect userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ | 
| 250 | - 'category' => get_class($this), | |
| 250 | + 'category' => get_class($this), | |
| 251 | 251 | ]); | 
| 252 | 252 | |
| 253 | 253 | $url = $discovery['userinfo_endpoint'].'?access_token='.$token; | 
| @@ -264,7 +264,7 @@ discard block | ||
| 264 | 264 |          if (200 === $code) { | 
| 265 | 265 | $attributes = json_decode($result, true); | 
| 266 | 266 |              $this->logger->debug('successfully verified oauth2 access token via authorization server', [ | 
| 267 | - 'category' => get_class($this), | |
| 267 | + 'category' => get_class($this), | |
| 268 | 268 | ]); | 
| 269 | 269 | |
| 270 | 270 |              if (!isset($attributes[$this->identity_attribute])) { | 
| @@ -282,7 +282,7 @@ discard block | ||
| 282 | 282 | return true; | 
| 283 | 283 | } | 
| 284 | 284 |          $this->logger->error('failed verify oauth2 access token via authorization server, received status ['.$code.']', [ | 
| 285 | - 'category' => get_class($this), | |
| 285 | + 'category' => get_class($this), | |
| 286 | 286 | ]); | 
| 287 | 287 | |
| 288 | 288 |          throw new Exception('failed verify oauth2 access token via authorization server'); | 
| @@ -1,6 +1,6 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -86,7 +86,7 @@ discard block | ||
| 86 | 86 | case 'provider_url': | 
| 87 | 87 | case 'token_validation_url': | 
| 88 | 88 | case 'identity_attribute': | 
| 89 | -                    $this->{$option} = (string) $value; | |
| 89 | +                    $this->{$option} = (string)$value; | |
| 90 | 90 | unset($config[$option]); | 
| 91 | 91 | |
| 92 | 92 | break; | 
| @@ -1,6 +1,6 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -80,7 +80,7 @@ discard block | ||
| 80 | 80 |              switch ($option) { | 
| 81 | 81 | case 'identity_class': | 
| 82 | 82 | case 'attribute_map_class': | 
| 83 | -                    $this->{$option} = (string) $value; | |
| 83 | +                    $this->{$option} = (string)$value; | |
| 84 | 84 | |
| 85 | 85 | break; | 
| 86 | 86 | case 'adapter': | 
| @@ -1,6 +1,6 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -177,11 +177,11 @@ discard block | ||
| 177 | 177 | case 'binddn': | 
| 178 | 178 | case 'bindpw': | 
| 179 | 179 | case 'basedn': | 
| 180 | -                    $this->{$option} = (string) $value; | |
| 180 | +                    $this->{$option} = (string)$value; | |
| 181 | 181 | |
| 182 | 182 | break; | 
| 183 | 183 | case 'tls': | 
| 184 | - $this->tls = (bool) $value; | |
| 184 | + $this->tls = (bool)$value; | |
| 185 | 185 | |
| 186 | 186 | break; | 
| 187 | 187 | default: | 
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro | 
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | /** | 
| 6 | 6 | * Micro |