@@ -215,8 +215,8 @@ |
||
215 | 215 | */ |
216 | 216 | public function headerMiddleware($header, $value) |
217 | 217 | { |
218 | - return function (callable $handler) use ($header, $value) { |
|
219 | - return function ( |
|
218 | + return function(callable $handler) use ($header, $value) { |
|
219 | + return function( |
|
220 | 220 | RequestInterface $request, |
221 | 221 | array $options |
222 | 222 | ) use ( |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | protected function getCacheKey() |
83 | 83 | { |
84 | - return $this->cachePrefix . $this->app['config']['username']; |
|
84 | + return $this->cachePrefix.$this->app['config']['username']; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | public function requestToken(array $credentials, $toArray = false) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->baseRefer = $result['redirect_url']; |
96 | 96 | |
97 | 97 | if (empty($result['redirect_url'])) { |
98 | - throw new HttpException('Request token fail: ' . json_encode($result, JSON_UNESCAPED_UNICODE), $response, $formatted); |
|
98 | + throw new HttpException('Request token fail: '.json_encode($result, JSON_UNESCAPED_UNICODE), $response, $formatted); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | return $toArray ? $result : $formatted; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | public function redirect() |
54 | 54 | { |
55 | - $url = 'cgi-bin/bizlogin?action=validate&lang=zh_CN&account=' . $this->app['config']['username']; |
|
55 | + $url = 'cgi-bin/bizlogin?action=validate&lang=zh_CN&account='.$this->app['config']['username']; |
|
56 | 56 | $this->httpGet($url); |
57 | 57 | } |
58 | 58 |