@@ -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); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | $client->handleCallback( |
| 52 | 52 | $_SESSION['session'], // URI from session |
| 53 | - $_GET['code'], // the code value (e.g. 12345) |
|
| 53 | + $_GET['code'], // the code value (e.g. 12345) |
|
| 54 | 54 | $_GET['state'] // the state value (e.g. abcde) |
| 55 | 55 | ); |
| 56 | 56 | |
@@ -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 | { |