Passed
Push — main ( 16966e...d887ef )
by Dylan
02:47
created
src/Connector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.