Completed
Push — master ( a78609...dfcc2e )
by Tobias
02:19
created
src/Gaufrette/Adapter/AsyncAwsS3.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -307,6 +307,9 @@  discard block
 block discarded – undo
307 307
         return true;
308 308
     }
309 309
 
310
+    /**
311
+     * @param string $key
312
+     */
310 313
     protected function getOptions($key, array $options = [])
311 314
     {
312 315
         $options['ACL'] = $this->options['acl'];
@@ -322,6 +325,9 @@  discard block
 block discarded – undo
322 325
         return $options;
323 326
     }
324 327
 
328
+    /**
329
+     * @return string
330
+     */
325 331
     protected function computePath($key)
326 332
     {
327 333
         if (empty($this->options['directory'])) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.