Skip to content

Commit 07b659c

Browse files
committed
Remove unnecessary variable
1 parent 8bc3cf7 commit 07b659c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Client.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,13 @@ public function setClientSecret($clientSecret)
273273
public function getAccessToken($code = '')
274274
{
275275
if (!empty($code)) {
276-
$params = [
276+
$uri = $this->buildUrl('accessToken', [
277277
'grant_type' => self::OAUTH2_GRANT_TYPE,
278278
self::OAUTH2_RESPONSE_TYPE => $code,
279279
'redirect_uri' => $this->getRedirectUrl(),
280280
'client_id' => $this->getClientId(),
281281
'client_secret' => $this->getClientSecret(),
282-
];
283-
$uri = $this->buildUrl('accessToken', $params);
282+
]);
284283
$guzzle = new GuzzleClient([
285284
'base_uri' => $this->getOAuthApiRoot(),
286285
'headers' => [

0 commit comments

Comments
 (0)