@@ -39,7 +39,7 @@ |
||
| 39 | 39 | 'code' => $_GET['code'] |
| 40 | 40 | ]); |
| 41 | 41 | |
| 42 | - }elseif($_SESSION['token']->hasExpired()){ |
|
| 42 | + } elseif($_SESSION['token']->hasExpired()){ |
|
| 43 | 43 | // This is how you refresh your access token once you have it |
| 44 | 44 | $new_token = $provider->getAccessToken('refresh_token', [ |
| 45 | 45 | 'refresh_token' => $_SESSION['token']->getRefreshToken() |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | /** |
| 125 | 125 | * Internal helper function to safe read from an array |
| 126 | 126 | * @param array $array |
| 127 | - * @param string|int $key |
|
| 127 | + * @param string $key |
|
| 128 | 128 | * @return null |
| 129 | 129 | */ |
| 130 | 130 | private function safeRead(array $array, $key) |