@@ -176,9 +176,6 @@ discard block |
||
| 176 | 176 | /** |
| 177 | 177 | * Refresh the access token from the OAuth. |
| 178 | 178 | * |
| 179 | - * @param string $refreshToken the refresh token |
|
| 180 | - * @param string $requestScope the scope associated with the previously |
|
| 181 | - * obtained access token |
|
| 182 | 179 | * |
| 183 | 180 | * @return AccessToken |
| 184 | 181 | */ |
@@ -220,6 +217,7 @@ discard block |
||
| 220 | 217 | /** |
| 221 | 218 | * Validate the provided URI to see if it has the right format, it is |
| 222 | 219 | * provided by the API consumer. |
| 220 | + * @param string $requestUri |
|
| 223 | 221 | */ |
| 224 | 222 | private static function parseRequestUri($requestUri) |
| 225 | 223 | { |
@@ -69,10 +69,10 @@ |
||
| 69 | 69 | |
| 70 | 70 | $bearerClient = new BearerClient( |
| 71 | 71 | $client, |
| 72 | - function (AccessToken $accessToken) { |
|
| 72 | + function(AccessToken $accessToken) { |
|
| 73 | 73 | $_SESSION['access_token'] = $accessToken; |
| 74 | 74 | }, |
| 75 | - function (AccessToken $accessToken) { |
|
| 75 | + function(AccessToken $accessToken) { |
|
| 76 | 76 | unset($_SESSION['access_token']); |
| 77 | 77 | } |
| 78 | 78 | ); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | CURLOPT_RETURNTRANSFER => true, |
| 79 | 79 | CURLOPT_FOLLOWLOCATION => false, |
| 80 | 80 | CURLOPT_PROTOCOLS => $this->httpsOnly ? CURLPROTO_HTTPS : CURLPROTO_HTTPS | CURLPROTO_HTTP, |
| 81 | - CURLOPT_HEADERFUNCTION => function ($curlChannel, $headerData) use (&$headerList) { |
|
| 81 | + CURLOPT_HEADERFUNCTION => function($curlChannel, $headerData) use (&$headerList) { |
|
| 82 | 82 | // XXX is this secure? mb_strlen? |
| 83 | 83 | if (false !== strpos($headerData, ':')) { |
| 84 | 84 | list($key, $value) = explode(':', $headerData, 2); |