diff --git a/src/OAuth/Common/Http/Client/StreamClient.php b/src/OAuth/Common/Http/Client/StreamClient.php index cc5d3cd5..d81fee88 100644 --- a/src/OAuth/Common/Http/Client/StreamClient.php +++ b/src/OAuth/Common/Http/Client/StreamClient.php @@ -65,7 +65,10 @@ public function retrieveResponse( if (false === $response) { $lastError = error_get_last(); if (is_null($lastError)) { - throw new TokenResponseException('Failed to request resource. HTTP Code: '.((isset($http_response_header[0]))?$http_response_header[0]:'No response')); + throw new TokenResponseException( + 'Failed to request resource. HTTP Code: ' . + ((isset($http_response_header[0]))?$http_response_header[0]:'No response') + ); } throw new TokenResponseException($lastError['message']); } diff --git a/src/OAuth/OAuth1/Service/AbstractService.php b/src/OAuth/OAuth1/Service/AbstractService.php index 5270a3f9..582b4674 100644 --- a/src/OAuth/OAuth1/Service/AbstractService.php +++ b/src/OAuth/OAuth1/Service/AbstractService.php @@ -110,7 +110,9 @@ public function requestAccessToken($token, $verifier, $tokenSecret = null) * @param TokenInterface $token * @return TokenInterface $token */ - public function refreshAccessToken(TokenInterface $token){} + public function refreshAccessToken(TokenInterface $token) + { + } /** * Sends an authenticated API request to the path provided. diff --git a/src/OAuth/OAuth1/Service/Yahoo.php b/src/OAuth/OAuth1/Service/Yahoo.php index 776cb8f5..50a825b2 100644 --- a/src/OAuth/OAuth1/Service/Yahoo.php +++ b/src/OAuth/OAuth1/Service/Yahoo.php @@ -56,7 +56,7 @@ public function getAccessTokenEndpoint() * {@inheritdoc} */ public function refreshAccessToken(TokenInterface $token) - { + { $extraParams = $token->getExtraParams(); $bodyParams = array('oauth_session_handle' => $extraParams['oauth_session_handle']);