@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected function normalizeMeta(array $meta, $path) |
| 39 | 39 | { |
| 40 | - $result = Util::pathinfo($path); |
|
| 40 | + $result = Util::pathinfo($path); |
|
| 41 | 41 | |
| 42 | 42 | if (isset($meta['Last-Modified'])) { |
| 43 | 43 | $result['timestamp'] = strtotime($meta['Last-Modified']); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | public function deleteDir($dirname) |
| 165 | 165 | { |
| 166 | 166 | try { |
| 167 | - $this->client->deleteObject(rtrim($dirname, '/') . '/'); |
|
| 167 | + $this->client->deleteObject(rtrim($dirname, '/').'/'); |
|
| 168 | 168 | } catch (Exception $exception) { |
| 169 | 169 | return false; |
| 170 | 170 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | try { |
| 186 | 186 | $this->client->putObject( |
| 187 | - rtrim($dirname, '/') . '/', |
|
| 187 | + rtrim($dirname, '/').'/', |
|
| 188 | 188 | '', |
| 189 | 189 | $this->extractOptions($config) |
| 190 | 190 | ); |
@@ -266,12 +266,12 @@ discard block |
||
| 266 | 266 | $result = $this->client->listObjects($options); |
| 267 | 267 | |
| 268 | 268 | $prefixes = isset($result['commonPrefixes']) |
| 269 | - ? array_map(function ($item) { |
|
| 269 | + ? array_map(function($item) { |
|
| 270 | 270 | return ['key' => $item['prefix']]; |
| 271 | 271 | }, $result['commonPrefixes']) |
| 272 | 272 | : []; |
| 273 | 273 | |
| 274 | - return array_map(function ($content) { |
|
| 274 | + return array_map(function($content) { |
|
| 275 | 275 | return $this->normalizeContent($content); |
| 276 | 276 | }, array_merge($result['contents'], $prefixes)); |
| 277 | 277 | } |