@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | { |
| 59 | 59 | $url = self::API_AUTHORIZE_USER_LOGIN_URL; |
| 60 | 60 | $url .= '?response_type=code'; |
| 61 | - $url .= '&redirect_uri=' . $redirectUrl; |
|
| 62 | - $url .= '&client_id=' . $this->clientId; |
|
| 63 | - $url .= '&scope=' . $apiScope->getUrlParameters(); |
|
| 61 | + $url .= '&redirect_uri='.$redirectUrl; |
|
| 62 | + $url .= '&client_id='.$this->clientId; |
|
| 63 | + $url .= '&scope='.$apiScope->getUrlParameters(); |
|
| 64 | 64 | $url .= '&state=oauth2'; |
| 65 | 65 | |
| 66 | 66 | return $url; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | return $this->accessToken; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - public function refreshAccessToken(?AccessToken $accessToken = null): AccessToken |
|
| 131 | + public function refreshAccessToken(?AccessToken $accessToken = null): AccessToken |
|
| 132 | 132 | { |
| 133 | 133 | $accessToken = $accessToken ?? $this->accessToken; |
| 134 | 134 | |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $this->getAuthorizationHeader(), |
| 158 | 158 | $customHeaders |
| 159 | 159 | ); |
| 160 | - $options = array_merge(['headers' => $headers], ['query' => $queryParameters]); |
|
| 160 | + $options = array_merge(['headers' => $headers], ['query' => $queryParameters]); |
|
| 161 | 161 | |
| 162 | 162 | try { |
| 163 | 163 | $response = $this->guzzleClient->get($url, $options); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | $customHeaders |
| 183 | 183 | ); |
| 184 | 184 | |
| 185 | - $options = array_merge(['headers' => $headers], ['body' => $postable->getPostBodyData()]); |
|
| 185 | + $options = array_merge(['headers' => $headers], ['body' => $postable->getPostBodyData()]); |
|
| 186 | 186 | |
| 187 | 187 | try { |
| 188 | 188 | return $this->guzzleClient->post($url, $options); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | $customHeaders |
| 206 | 206 | ); |
| 207 | 207 | |
| 208 | - $options = array_merge(['headers' => $headers], ['body' => $jsonData]); |
|
| 208 | + $options = array_merge(['headers' => $headers], ['body' => $jsonData]); |
|
| 209 | 209 | |
| 210 | 210 | try { |
| 211 | 211 | $this->guzzleClient->put($url, $options); |