Skip to content

Commit

Permalink
Cleanup for phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Chance committed Sep 9, 2015
1 parent ef30db0 commit 164f7fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/OAuth/Common/Http/Client/StreamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down
4 changes: 3 additions & 1 deletion src/OAuth/OAuth1/Service/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/OAuth/OAuth1/Service/Yahoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down

0 comments on commit 164f7fc

Please sign in to comment.