Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Commit

Permalink
Fix minor code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
djchen committed Nov 23, 2016
1 parent de75b63 commit a349689
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Provider/Fitbit.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ public function createResourceOwner(array $response, AccessToken $token)
*
* @return string|null Resource owner identifier key
*/
protected function getAccessTokenResourceOwnerId() {
protected function getAccessTokenResourceOwnerId()
{
return 'user_id';
}

Expand All @@ -190,10 +191,14 @@ protected function getAccessTokenResourceOwnerId() {
*
* @return mixed
*/
public function revoke(AccessToken $accessToken) {
public function revoke(AccessToken $accessToken)
{
$options = $this->getAccessTokenOptions([]);
$uri = $this->appendQuery(Fitbit::BASE_FITBIT_API_URL . '/oauth2/revoke', $this->buildQueryString(['token' => $accessToken->getToken()]));
$request = $this->getRequest(Fitbit::METHOD_POST, $uri, $options);
$uri = $this->appendQuery(
self::BASE_FITBIT_API_URL.'/oauth2/revoke',
$this->buildQueryString(['token' => $accessToken->getToken()])
);
$request = $this->getRequest(self::METHOD_POST, $uri, $options);

return $this->getResponse($request);
}
Expand Down

0 comments on commit a349689

Please sign in to comment.