@@ -270,7 +270,7 @@ |
||
270 | 270 | */ |
271 | 271 | public function isDirectory($key) |
272 | 272 | { |
273 | - if ($this->exists($key . '/')) { |
|
273 | + if ($this->exists($key.'/')) { |
|
274 | 274 | return true; |
275 | 275 | } |
276 | 276 |
@@ -257,11 +257,11 @@ |
||
257 | 257 | $key = substr($parts['path'], 1); |
258 | 258 | |
259 | 259 | if (null !== $parts['query']) { |
260 | - $key .= '?' . $parts['query']; |
|
260 | + $key .= '?'.$parts['query']; |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | if (null !== $parts['fragment']) { |
264 | - $key .= '#' . $parts['fragment']; |
|
264 | + $key .= '#'.$parts['fragment']; |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | if (empty($domain) || empty($key)) { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | } else { |
90 | 90 | $before = substr($this->content, 0, $this->position); |
91 | 91 | $after = $newNumBytes > $newPosition ? substr($this->content, $newPosition) : ''; |
92 | - $this->content = $before . $data . $after; |
|
92 | + $this->content = $before.$data.$after; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | $this->position = $newPosition; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->ensureBucketExists(); |
107 | 107 | $options = $this->getOptions( |
108 | 108 | $targetKey, |
109 | - ['CopySource' => $this->bucket . '/' . $this->computePath($sourceKey)] |
|
109 | + ['CopySource' => $this->bucket.'/'.$this->computePath($sourceKey)] |
|
110 | 110 | ); |
111 | 111 | |
112 | 112 | try { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | { |
248 | 248 | $result = $this->service->listObjectsV2([ |
249 | 249 | 'Bucket' => $this->bucket, |
250 | - 'Prefix' => rtrim($this->computePath($key), '/') . '/', |
|
250 | + 'Prefix' => rtrim($this->computePath($key), '/').'/', |
|
251 | 251 | 'MaxKeys' => 1, |
252 | 252 | ]); |
253 | 253 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | try { |
54 | 54 | $this->adapter->write($key, $content, $this->config); |
55 | 55 | return $this->adapter->fileSize($key)->fileSize(); |
56 | - } catch(UnableToWriteFile $exception) { |
|
56 | + } catch (UnableToWriteFile $exception) { |
|
57 | 57 | return false; |
58 | 58 | } |
59 | 59 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function keys() |
73 | 73 | { |
74 | - return array_map(function (StorageAttributes $content) { |
|
74 | + return array_map(function(StorageAttributes $content) { |
|
75 | 75 | return $content->path(); |
76 | 76 | }, $this->adapter->listContents('', true)); |
77 | 77 | } |