@@ -37,19 +37,19 @@ |
||
37 | 37 | */ |
38 | 38 | public function build(): StorageManager |
39 | 39 | { |
40 | - if(!$this->clientStorage) { |
|
40 | + if (!$this->clientStorage) { |
|
41 | 41 | throw new \InvalidArgumentException('Client storage is missing'); |
42 | 42 | } |
43 | - if(!$this->resourceOwnerStorage) { |
|
43 | + if (!$this->resourceOwnerStorage) { |
|
44 | 44 | throw new \InvalidArgumentException('Resource owner storage is missing'); |
45 | 45 | } |
46 | - if(!$this->authorizationCodeStorage) { |
|
46 | + if (!$this->authorizationCodeStorage) { |
|
47 | 47 | throw new \InvalidArgumentException('Authorization code storage is missing'); |
48 | 48 | } |
49 | - if(!$this->accessTokenStorage) { |
|
49 | + if (!$this->accessTokenStorage) { |
|
50 | 50 | throw new \InvalidArgumentException('Access token storage is missing'); |
51 | 51 | } |
52 | - if(!$this->refreshTokenStorage) { |
|
52 | + if (!$this->refreshTokenStorage) { |
|
53 | 53 | throw new \InvalidArgumentException('Refresh token storage is missing'); |
54 | 54 | } |
55 | 55 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $codeChallenge = $authorizationRequest->getData()['code_challenge'] ?? null; |
35 | 35 | |
36 | 36 | $codeChallengeMethod = 'plain'; |
37 | - if(!empty($authorizationRequest->getData()['code_challenge_method'])) { |
|
37 | + if (!empty($authorizationRequest->getData()['code_challenge_method'])) { |
|
38 | 38 | $codeChallengeMethod = $authorizationRequest->getData()['code_challenge_method']; |
39 | 39 | } |
40 | 40 |
@@ -22,6 +22,6 @@ |
||
22 | 22 | * TODO utiliser un builder |
23 | 23 | */ |
24 | 24 | public function setCodeChallenge(AuthorizationCodeInterface $authorizationCode, string $codeChallenge, |
25 | - string $codeChallengeMethod = 'plain'); |
|
25 | + string $codeChallengeMethod = 'plain'); |
|
26 | 26 | |
27 | 27 | } |
28 | 28 | \ No newline at end of file |