Code Duplication    Length = 14-14 lines in 2 locations

src/Gaufrette/Adapter/AsyncAwsS3.php 1 location

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

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
    {