Passed
Push — main ( d887ef...1164b9 )
by Dylan
02:33
created
src/App.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  */
14 14
 class App extends Connector {
15 15
 
16
-    const CODE_URL      = '/oauth/code';
16
+    const CODE_URL = '/oauth/code';
17 17
 
18 18
     const ACCESS_TOKEN_PARAM    = 'lb_app_access_token';
19 19
     const API_CHALLENGE_PARAM   = 'lb_app_api_challenge';
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function __construct(string $app_id, string $app_secret, string $auth_domain = self::AUTH_DOMAIN)
31 31
     {
32 32
         if (!$app_id || !$app_secret) {
33
-            throw new InvalidArgumentException(static::class . "expects an app_id and app_secret");
33
+            throw new InvalidArgumentException(static::class."expects an app_id and app_secret");
34 34
         }
35 35
 
36 36
         $this->setAppID($app_id);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
         if (!$response->isValid() || !$json || !array_key_exists('access_token', $json)) {
162 162
             return '';
163
-        } else {
163
+        }else {
164 164
             $this->setAccessToken($json['access_token']);
165 165
             return $this->getAccessToken(false);
166 166
         }
Please login to merge, or discard this patch.