Test Failed
Pull Request — master (#1684)
by
unknown
12:21
created
src/Kernel/AccessToken.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $formatted = $this->castResponseToType($response, $this->app['config']->get('response_type'));
182 182
 
183 183
         if (empty($result[$this->tokenKey])) {
184
-            throw new HttpException('Request access_token fail: ' . json_encode($result, JSON_UNESCAPED_UNICODE), $response, $formatted);
184
+            throw new HttpException('Request access_token fail: '.json_encode($result, JSON_UNESCAPED_UNICODE), $response, $formatted);
185 185
         }
186 186
 
187 187
         return $toArray ? $result : $formatted;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function getCacheKey()
234 234
     {
235
-        return $this->cachePrefix . md5(json_encode($this->getCredentials()));
235
+        return $this->cachePrefix.md5(json_encode($this->getCredentials()));
236 236
     }
237 237
 
238 238
     /**
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     public function getEndpoint() : string
260 260
     {
261 261
         if ($this->app['config']->has('http.base_uri') && strpos($this->app['config']->get('http.base_uri'), 'api.q.qq.com') !== false) {
262
-            $this->endpointToGetToken = $this->app['config']->get('http.base_uri') . 'api/getToken';
262
+            $this->endpointToGetToken = $this->app['config']->get('http.base_uri').'api/getToken';
263 263
         }
264 264
 
265 265
         if (empty($this->endpointToGetToken)) {
Please login to merge, or discard this patch.