@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @method \Psr\Http\Message\ResponseInterface me() |
28 | 28 | */ |
29 | -class Deezer extends OAuth2Provider implements CSRFToken{ |
|
29 | +class Deezer extends OAuth2Provider implements CSRFToken { |
|
30 | 30 | |
31 | 31 | public const SCOPE_BASIC = 'basic_access'; |
32 | 32 | public const SCOPE_EMAIL = 'email'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public function getAuthURL(array $params = null, array $scopes = null):UriInterface{ |
60 | 60 | $params = $params ?? []; |
61 | 61 | |
62 | - if(isset($params['client_secret'])){ |
|
62 | + if (isset($params['client_secret'])) { |
|
63 | 63 | unset($params['client_secret']); |
64 | 64 | } |
65 | 65 | |
@@ -107,11 +107,11 @@ discard block |
||
107 | 107 | protected function parseTokenResponse(ResponseInterface $response):AccessToken{ |
108 | 108 | parse_str(decompress_content($response), $data); |
109 | 109 | |
110 | - if(isset($data['error_reason'])){ |
|
110 | + if (isset($data['error_reason'])) { |
|
111 | 111 | throw new ProviderException('error retrieving access token: "'.$data['error_reason'].'"'); |
112 | 112 | } |
113 | 113 | |
114 | - if(!isset($data['access_token'])){ |
|
114 | + if (!isset($data['access_token'])) { |
|
115 | 115 | throw new ProviderException('token missing'); |
116 | 116 | } |
117 | 117 |