Passed
Push — master ( 98fa87...d92332 )
by smiley
01:36
created
src/Storage/MemoryStorage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.