@@ -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 | { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | CURLOPT_HTTPHEADER => [], |
74 | 74 | CURLOPT_FOLLOWLOCATION => false, |
75 | 75 | CURLOPT_PROTOCOLS => $this->httpsOnly ? CURLPROTO_HTTPS : CURLPROTO_HTTPS | CURLPROTO_HTTP, |
76 | - CURLOPT_HEADERFUNCTION => function ($curlChannel, $headerData) use (&$headerList) { |
|
76 | + CURLOPT_HEADERFUNCTION => function($curlChannel, $headerData) use (&$headerList) { |
|
77 | 77 | if (false !== strpos($headerData, ':')) { |
78 | 78 | list($key, $value) = explode(':', $headerData, 2); |
79 | 79 | $headerList[trim($key)] = trim($value); |