From 80f09862b462c4fa8f4da15cf9c9019d9e9316e4 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Wed, 2 Oct 2019 19:37:52 +0530 Subject: [PATCH] chore: lint fix --- src/Auth/OAuth/Dropbox.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Auth/OAuth/Dropbox.php b/src/Auth/OAuth/Dropbox.php index d249911395..a4a6335f36 100644 --- a/src/Auth/OAuth/Dropbox.php +++ b/src/Auth/OAuth/Dropbox.php @@ -6,7 +6,7 @@ use Auth\OAuth; // Reference Material // https://www.dropbox.com/developers/reference/oauth-guide -// https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account +// https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account class Dropbox extends OAuth { /** @@ -41,7 +41,6 @@ class Dropbox extends OAuth */ public function getAccessToken(string $code): string { - $headers[] = 'Content-Type: application/x-www-form-urlencoded'; $accessToken = $this->request( 'POST', @@ -122,7 +121,6 @@ class Dropbox extends OAuth $headers[] = 'Authorization: Bearer '. urlencode($accessToken); $user = $this->request('POST', 'https://api.dropboxapi.com/2/users/get_current_account', $headers); $this->user = json_decode($user, true); - } return $this->user;