@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | use function array_keys, array_key_exists; |
18 | 18 | |
19 | -class MemoryStorage extends OAuthStorageAbstract{ |
|
19 | +class MemoryStorage extends OAuthStorageAbstract { |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @var array |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getAccessToken(string $service):AccessToken{ |
50 | 50 | |
51 | - if($this->hasAccessToken($service)){ |
|
51 | + if ($this->hasAccessToken($service)) { |
|
52 | 52 | return $this->tokens[$service]; |
53 | 53 | } |
54 | 54 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function clearAccessToken(string $service):OAuthStorageInterface{ |
73 | 73 | |
74 | - if(array_key_exists($service, $this->tokens)){ |
|
74 | + if (array_key_exists($service, $this->tokens)) { |
|
75 | 75 | unset($this->tokens[$service]); |
76 | 76 | } |
77 | 77 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function clearAllAccessTokens():OAuthStorageInterface{ |
85 | 85 | |
86 | - foreach(array_keys($this->tokens) as $service){ |
|
86 | + foreach (array_keys($this->tokens) as $service) { |
|
87 | 87 | unset($this->tokens[$service]); |
88 | 88 | } |
89 | 89 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function getCSRFState(string $service):string{ |
114 | 114 | |
115 | - if($this->hasCSRFState($service)){ |
|
115 | + if ($this->hasCSRFState($service)) { |
|
116 | 116 | return $this->states[$service]; |
117 | 117 | } |
118 | 118 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | public function clearCSRFState(string $service):OAuthStorageInterface{ |
137 | 137 | |
138 | - if(array_key_exists($service, $this->states)){ |
|
138 | + if (array_key_exists($service, $this->states)) { |
|
139 | 139 | unset($this->states[$service]); |
140 | 140 | } |
141 | 141 |