@@ -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() |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | /** |
| 157 | 157 | * Internal helper function to safe read from an array |
| 158 | 158 | * @param mixed $array |
| 159 | - * @param string|int $key |
|
| 159 | + * @param string $key |
|
| 160 | 160 | * @return null |
| 161 | 161 | */ |
| 162 | 162 | private function safeRead($array, $key) |