@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public function __construct(string $app_id, string $app_secret, $auth_domain = self::AUTH_DOMAIN) |
| 26 | 26 | { |
| 27 | 27 | if (!$app_id || !$app_secret) { |
| 28 | - throw new InvalidArgumentException(static::class . "expects an app_id and app_secret"); |
|
| 28 | + throw new InvalidArgumentException(static::class."expects an app_id and app_secret"); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $this->setAppID($app_id); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | if (!$response->isValid() || !$json || !array_key_exists('access_token', $json)) { |
| 159 | 159 | return ''; |
| 160 | - } else { |
|
| 160 | + }else { |
|
| 161 | 161 | $this->setAccessToken($json['access_token']); |
| 162 | 162 | return $this->getAccessToken(false); |
| 163 | 163 | } |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Lifeboat; |
| 4 | 4 | |
| 5 | -require_once __DIR__ . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'functions.php'; |
|
| 5 | +require_once __DIR__.DIRECTORY_SEPARATOR.'includes'.DIRECTORY_SEPARATOR.'functions.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Lifeboat\Exceptions\BadMethodException; |
| 8 | 8 | use Lifeboat\Exceptions\OAuthException; |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | public function curl_api(string $url, string $method = 'GET', array $data = [], array $headers = []): CurlResponse |
| 166 | 166 | { |
| 167 | 167 | $url = URL::is_absolute_url($url) ? $url |
| 168 | - : 'https://' . rtrim($this->getHost(), '/') . '/' . ltrim($url, '/'); |
|
| 168 | + : 'https://'.rtrim($this->getHost(), '/').'/'.ltrim($url, '/'); |
|
| 169 | 169 | |
| 170 | 170 | $curl = new Curl($url, $data, $headers); |
| 171 | 171 | |
@@ -184,6 +184,6 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | protected function auth_url(string $path): string |
| 186 | 186 | { |
| 187 | - return rtrim($this->_auth_domain, '/') . '/' . ltrim($path, '/'); |
|
| 187 | + return rtrim($this->_auth_domain, '/').'/'.ltrim($path, '/'); |
|
| 188 | 188 | } |
| 189 | 189 | } |