@@ -35,9 +35,9 @@ discard block |
||
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 |
||
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 |
||
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, [ |