@@ -20,12 +20,12 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | protected function getAuthUrl(): string |
| 22 | 22 | { |
| 23 | - return $this->buildAuthUrlFromBase($this->baseUrl . '/oauth2.0/authorize'); |
|
| 23 | + return $this->buildAuthUrlFromBase($this->baseUrl.'/oauth2.0/authorize'); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | protected function getTokenUrl(): string |
| 27 | 27 | { |
| 28 | - return $this->baseUrl . '/oauth2.0/token'; |
|
| 28 | + return $this->baseUrl.'/oauth2.0/token'; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | #[ArrayShape([ |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | 'query' => $this->getTokenFields($code), |
| 47 | 47 | ]); |
| 48 | 48 | |
| 49 | - \parse_str((string) $response->getBody(), $token); |
|
| 49 | + \parse_str((string)$response->getBody(), $token); |
|
| 50 | 50 | |
| 51 | 51 | return $this->normalizeAccessTokenResponse($token); |
| 52 | 52 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | protected function getUserByToken(string $token): array |
| 62 | 62 | { |
| 63 | - $response = $this->getHttpClient()->get($this->baseUrl . '/oauth2.0/me', [ |
|
| 63 | + $response = $this->getHttpClient()->get($this->baseUrl.'/oauth2.0/me', [ |
|
| 64 | 64 | 'query' => [ |
| 65 | 65 | Contracts\RFC6749_ABNF_ACCESS_TOKEN => $token, |
| 66 | 66 | 'fmt' => 'json', |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | $me = $this->fromJsonBody($response); |
| 71 | 71 | |
| 72 | - $response = $this->getHttpClient()->get($this->baseUrl . '/user/get_user_info', [ |
|
| 72 | + $response = $this->getHttpClient()->get($this->baseUrl.'/user/get_user_info', [ |
|
| 73 | 73 | 'query' => [ |
| 74 | 74 | Contracts\RFC6749_ABNF_ACCESS_TOKEN => $token, |
| 75 | 75 | 'fmt' => 'json', |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | $this->state = $this->state ?: \md5(\uniqid(Contracts\RFC6749_ABNF_STATE, true)); |
| 24 | 24 | |
| 25 | - return $this->buildAuthUrlFromBase('https://access.line.me/oauth2/' . $this->version . '/authorize'); |
|
| 25 | + return $this->buildAuthUrlFromBase('https://access.line.me/oauth2/'.$this->version.'/authorize'); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | protected function getTokenUrl(): string |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | [ |
| 50 | 50 | 'headers' => [ |
| 51 | 51 | 'Accept' => 'application/json', |
| 52 | - 'Authorization' => 'Bearer ' . $token, |
|
| 52 | + 'Authorization' => 'Bearer '.$token, |
|
| 53 | 53 | ], |
| 54 | 54 | ] |
| 55 | 55 | ); |