Test Failed
Push — master ( 12e206...e5b474 )
by wannanbigpig
03:10 queued 11s
created
src/BaseService/Auth/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
         ];
36 36
 
37 37
         if ($grantType !== 'authorization_code') {
38
-            $params['refresh_token'] = $code;
38
+            $params[ 'refresh_token' ] = $code;
39 39
         } else {
40
-            $params['code'] = $code;
40
+            $params[ 'code' ] = $code;
41 41
         }
42 42
 
43 43
         return $this->request($method, $params);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $url = 'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?';
66 66
 
67
-        return $url.http_build_query($params);
67
+        return $url . http_build_query($params);
68 68
     }
69 69
 
70 70
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             'state' => $state,
110 110
         ];
111 111
         $this->app->setEndpointConfig($method, [
112
-            'return_url' => $returnUrl ?: $this->app['config']->get('return_url'),
112
+            'return_url' => $returnUrl ?: $this->app[ 'config' ]->get('return_url'),
113 113
         ]);
114 114
 
115 115
         return $this->request($method, [
Please login to merge, or discard this patch.