@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | return true; |
252 | 252 | } |
253 | 253 | |
254 | - $keys = array_map(function ($item) { |
|
254 | + $keys = array_map(function($item) { |
|
255 | 255 | return ['Key' => $item['Key']]; |
256 | 256 | }, (array) $response['Contents']); |
257 | 257 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | ])->get('Body'); |
334 | 334 | } |
335 | 335 | |
336 | - return ['contents' => (string)$response]; |
|
336 | + return ['contents' => (string) $response]; |
|
337 | 337 | } catch (NoSuchKeyException $e) { |
338 | 338 | return false; |
339 | 339 | } catch (\GuzzleHttp\Exception\ClientException $e) { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | $this->app->make('filesystem') |
32 | - ->extend('cosv5', function ($app, $config) { |
|
32 | + ->extend('cosv5', function($app, $config) { |
|
33 | 33 | $client = new Client($config); |
34 | 34 | $flysystem = new Filesystem(new Adapter($client, $config), $config); |
35 | 35 |
@@ -88,7 +88,7 @@ |
||
88 | 88 | */ |
89 | 89 | protected function buildFormParams(array $values, $key, $action) |
90 | 90 | { |
91 | - $keys = array_map(function ($n) use ($key) { |
|
91 | + $keys = array_map(function($n) use ($key) { |
|
92 | 92 | return sprintf("$key.%d", $n); |
93 | 93 | }, range(0, count($values) - 1)); |
94 | 94 |
@@ -167,7 +167,7 @@ |
||
167 | 167 | { |
168 | 168 | ksort($params); |
169 | 169 | |
170 | - $srcStr = 'POSTsts.api.qcloud.com/v2/index.php?' . urldecode(http_build_query($params)); |
|
170 | + $srcStr = 'POSTsts.api.qcloud.com/v2/index.php?'.urldecode(http_build_query($params)); |
|
171 | 171 | |
172 | 172 | return base64_encode(hash_hmac('sha1', $srcStr, $this->getCredentials()['secretKey'], true)); |
173 | 173 | } |