@@ -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; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | if (!$response->isValid() || !$json || !array_key_exists('access_token', $json)) { |
| 114 | 114 | throw new OAuthException($response->getError()); |
| 115 | - } else { |
|
| 115 | + }else { |
|
| 116 | 116 | $this->setAccessToken($json['access_token']); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | public function curl_api(string $url, string $method = 'GET', array $data = [], array $headers = []): CurlResponse |
| 189 | 189 | { |
| 190 | 190 | $url = URL::is_absolute_url($url) ? $url |
| 191 | - : 'https://' . rtrim($this->getHost(), '/') . '/' . ltrim($url, '/'); |
|
| 191 | + : 'https://'.rtrim($this->getHost(), '/').'/'.ltrim($url, '/'); |
|
| 192 | 192 | |
| 193 | 193 | $curl = new Curl($url, $data, $headers); |
| 194 | 194 | |
@@ -207,6 +207,6 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | protected function auth_url(string $path): string |
| 209 | 209 | { |
| 210 | - return rtrim($this->_auth_domain, '/') . '/' . ltrim($path, '/'); |
|
| 210 | + return rtrim($this->_auth_domain, '/').'/'.ltrim($path, '/'); |
|
| 211 | 211 | } |
| 212 | 212 | } |