Code Duplication    Length = 10-10 lines in 2 locations

src/Gaufrette/Adapter/AsyncAwsS3.php 1 location

@@ 58-67 (lines=10) @@
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function setMetadata($key, $content)
59
    {
60
        // BC with AmazonS3 adapter
61
        if (isset($content['contentType'])) {
62
            $content['ContentType'] = $content['contentType'];
63
            unset($content['contentType']);
64
        }
65
66
        $this->metadata[$key] = $content;
67
    }
68
69
    /**
70
     * {@inheritdoc}

src/Gaufrette/Adapter/AwsS3.php 1 location

@@ 57-66 (lines=10) @@
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function setMetadata($key, $metadata)
58
    {
59
        // BC with AmazonS3 adapter
60
        if (isset($metadata['contentType'])) {
61
            $metadata['ContentType'] = $metadata['contentType'];
62
            unset($metadata['contentType']);
63
        }
64
65
        $this->metadata[$key] = $metadata;
66
    }
67
68
    /**
69
     * {@inheritdoc}