@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | class App extends Connector { |
| 15 | 15 | |
| 16 | - const CODE_URL = '/oauth/code'; |
|
| 16 | + const CODE_URL = '/oauth/code'; |
|
| 17 | 17 | |
| 18 | 18 | const ACCESS_TOKEN_PARAM = 'lb_app_access_token'; |
| 19 | 19 | const API_CHALLENGE_PARAM = 'lb_app_api_challenge'; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function __construct(string $app_id, string $app_secret, string $auth_domain = self::AUTH_DOMAIN) |
| 31 | 31 | { |
| 32 | 32 | if (!$app_id || !$app_secret) { |
| 33 | - throw new InvalidArgumentException(static::class . "expects an app_id and app_secret"); |
|
| 33 | + throw new InvalidArgumentException(static::class."expects an app_id and app_secret"); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $this->setAppID($app_id); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | if (!$response->isValid() || !$json || !array_key_exists('access_token', $json)) { |
| 162 | 162 | return ''; |
| 163 | - } else { |
|
| 163 | + }else { |
|
| 164 | 164 | $this->setAccessToken($json['access_token']); |
| 165 | 165 | return $this->getAccessToken(false); |
| 166 | 166 | } |