@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | public function build() |
| 64 | 64 | { |
| 65 | - $scopePolicyManager= new ScopePolicyManager($this->config->getScopePolicy()); |
|
| 65 | + $scopePolicyManager = new ScopePolicyManager($this->config->getScopePolicy()); |
|
| 66 | 66 | $storageManager = $this->storages->build(); |
| 67 | 67 | |
| 68 | 68 | $authorizationServerBuilder = new AuthorizationServerBuilder($this->config, $storageManager, $scopePolicyManager, $this->endUser); |
@@ -28,13 +28,13 @@ |
||
| 28 | 28 | )); |
| 29 | 29 | |
| 30 | 30 | $authorizationCodeStorage = $builder->getStorageManager()->getAuthorizationCodeStorage(); |
| 31 | - if(!$authorizationCodeStorage instanceof PKCEAuthorizationCodeStorageInterface) { |
|
| 32 | - throw new \InvalidArgumentException('Authorization code storage must be an instance of "' . PKCEAuthorizationCodeStorageInterface::class . '"'); |
|
| 31 | + if (!$authorizationCodeStorage instanceof PKCEAuthorizationCodeStorageInterface) { |
|
| 32 | + throw new \InvalidArgumentException('Authorization code storage must be an instance of "'.PKCEAuthorizationCodeStorageInterface::class.'"'); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $authorizationCodeFlow = $builder->getFlowManager()->getFlow('authorization_code'); |
| 36 | 36 | if (!$authorizationCodeFlow instanceof AuthorizationCodeFlow) { |
| 37 | - throw new \InvalidArgumentException('Flow with key "authorization_code" must be an instance of "' . AuthorizationCodeFlow::class . '"'); |
|
| 37 | + throw new \InvalidArgumentException('Flow with key "authorization_code" must be an instance of "'.AuthorizationCodeFlow::class.'"'); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | $builder->getFlowManager()->addFlow('authorization_code', new PKCEAuthorizationCodeFlow( |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | public function getData(): array |
| 69 | 69 | { |
| 70 | - return $this->authorizationRequest->getData(); |
|
| 70 | + return $this->authorizationRequest->getData(); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | public function setClientAuthenticationMethod(string $identifier, |
| 87 | - ClientAuthenticationMethodInterface $clientAuthenticationMethod): self |
|
| 87 | + ClientAuthenticationMethodInterface $clientAuthenticationMethod): self |
|
| 88 | 88 | { |
| 89 | 89 | $this->clientAuthenticationMethods[$identifier] = $clientAuthenticationMethod; |
| 90 | 90 | return $this; |