Code Duplication    Length = 14-14 lines in 2 locations

src/Gaufrette/Adapter/AwsS3.php 1 location

@@ 284-297 (lines=14) @@
281
        return true;
282
    }
283
284
    protected function getOptions($key, array $options = [])
285
    {
286
        $options['ACL'] = $this->options['acl'];
287
        $options['Bucket'] = $this->bucket;
288
        $options['Key'] = $this->computePath($key);
289
290
        /*
291
         * Merge global options for adapter, which are set in the constructor, with metadata.
292
         * Metadata will override global options.
293
         */
294
        $options = array_merge($this->options, $options, $this->getMetadata($key));
295
296
        return $options;
297
    }
298
299
    protected function computePath($key)
300
    {

src/Gaufrette/Adapter/AsyncAwsS3.php 1 location

@@ 296-309 (lines=14) @@
293
        return true;
294
    }
295
296
    protected function getOptions($key, array $options = [])
297
    {
298
        $options['ACL'] = $this->options['acl'];
299
        $options['Bucket'] = $this->bucket;
300
        $options['Key'] = $this->computePath($key);
301
302
        /*
303
         * Merge global options for adapter, which are set in the constructor, with metadata.
304
         * Metadata will override global options.
305
         */
306
        $options = array_merge($this->options, $options, $this->getMetadata($key));
307
308
        return $options;
309
    }
310
311
    protected function computePath($key)
312
    {