Passed
Push — main ( 47f0cd...b1d2fe )
by Dylan
01:56
created
tests/AppTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@
 block discarded – undo
54 54
     {
55 55
         $app    = new App('id', 'secret', 'http://test.domain');
56 56
         $url    = $app->getAuthURL('process.php', 'error.php', 'challenge');
57
-        $expect = 'http://test.domain/oauth/code?app_id=id&process_url=' .
58
-            urlencode('process.php') .
59
-            '&error_url=' . urlencode('error.php') .
60
-            '&challenge=' . Utils::pack('challenge');
57
+        $expect = 'http://test.domain/oauth/code?app_id=id&process_url='.
58
+            urlencode('process.php').
59
+            '&error_url='.urlencode('error.php').
60
+            '&challenge='.Utils::pack('challenge');
61 61
 
62 62
         $this->assertEquals($expect, $url);
63 63
     }
Please login to merge, or discard this patch.
src/App.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function __construct(string $app_id, string $app_secret, $auth_domain = self::AUTH_DOMAIN)
23 23
     {
24 24
         if (!$app_id || !$app_secret) {
25
-            throw new InvalidArgumentException(static::class . "expects an app_id and app_secret");
25
+            throw new InvalidArgumentException(static::class."expects an app_id and app_secret");
26 26
         }
27 27
 
28 28
         $this->setAppID($app_id);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
         if (!$response->isValid() || !$json || !array_key_exists('access_token', $json)) {
130 130
             return $json['access_token'];
131
-        } else {
131
+        }else {
132 132
             return '';
133 133
         }
134 134
     }
Please login to merge, or discard this patch.