Passed
Push — main ( 5be1cc...a3fefa )
by Dylan
01:51
created
src/services/Curl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         }
189 189
 
190 190
         if ($this->_enable_cache && $this->getMethod() === 'GET') {
191
-            $cache_key = urlencode($request_uri) . implode(',', $send_headers);
191
+            $cache_key = urlencode($request_uri).implode(',', $send_headers);
192 192
             if (array_key_exists($cache_key, self::$_cache)) {
193 193
                 return self::$_cache[$cache_key];
194 194
             }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         curl_setopt($ch, CURLOPT_AUTOREFERER, true);
209 209
 
210 210
         if (!empty($send_headers))  curl_setopt($ch, CURLOPT_HTTPHEADER, $send_headers);
211
-        if (!is_null($post_data))   {
211
+        if (!is_null($post_data)) {
212 212
             curl_setopt($ch, CURLOPT_POST, 1);
213 213
             curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
214 214
         }
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 class Client {
13 13
 
14 14
     const AUTH_DOMAIN   = 'https://accounts.lifeboat.app';
15
-    const TOKEN_URL     = self::AUTH_DOMAIN . '/oauth/api_token';
16
-    const SITES_URL     = self::AUTH_DOMAIN . '/oauth/sites';
15
+    const TOKEN_URL     = self::AUTH_DOMAIN.'/oauth/api_token';
16
+    const SITES_URL     = self::AUTH_DOMAIN.'/oauth/sites';
17 17
 
18 18
     private $_api_key = '';
19 19
     private $_api_secret = '';
Please login to merge, or discard this patch.