@@ -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 | |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | */ |
| 132 | 132 | protected function buildFormParams(array $values, $key, $action) |
| 133 | 133 | { |
| 134 | - $keys = array_map(function ($n) use ($key) { |
|
| 134 | + $keys = array_map(function($n) use ($key) { |
|
| 135 | 135 | return sprintf("{$key}.%d", $n); |
| 136 | 136 | }, range(0, count($values) - 1)); |
| 137 | 137 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | '%s Credential=%s/%s, SignedHeaders=%s, Signature=%s', |
| 88 | 88 | 'TC3-HMAC-SHA256', |
| 89 | 89 | $this->getCredentials()['secretId'], |
| 90 | - date('Y-m-d', $timestamp) . "/{$service}/tc3_request", |
|
| 90 | + date('Y-m-d', $timestamp)."/{$service}/tc3_request", |
|
| 91 | 91 | 'content-type;host', |
| 92 | 92 | hash_hmac( |
| 93 | 93 | 'SHA256', |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | return hash_hmac('SHA256', 'tc3_request', |
| 109 | 109 | hash_hmac('SHA256', $service, |
| 110 | 110 | hash_hmac('SHA256', date('Y-m-d', $timestamp), |
| 111 | - 'TC3' . $this->getCredentials()['secretKey'], true |
|
| 111 | + 'TC3'.$this->getCredentials()['secretKey'], true |
|
| 112 | 112 | ), true |
| 113 | 113 | ), true |
| 114 | 114 | ); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | return implode("\n", [ |
| 149 | 149 | 'TC3-HMAC-SHA256', |
| 150 | 150 | $timestamp, |
| 151 | - date('Y-m-d', $timestamp) . "/{$service}/tc3_request", |
|
| 151 | + date('Y-m-d', $timestamp)."/{$service}/tc3_request", |
|
| 152 | 152 | hash('SHA256', $this->getCanonicalRequest($args, $service)), |
| 153 | 153 | ]); |
| 154 | 154 | } |