Test Failed
Push — main ( e6678b...02f88a )
by Dylan
09:26
created
src/App.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Connector.php 1 patch
Spacing   +3 added lines, -3 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;
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.