Code Duplication    Length = 3-3 lines in 2 locations

src/Gaufrette/Adapter/AsyncAwsS3.php 1 location

@@ 134-136 (lines=3) @@
131
         * If the ContentType was not already set in the metadata, then we autodetect
132
         * it to prevent everything being served up as binary/octet-stream.
133
         */
134
        if (!isset($options['ContentType']) && $this->detectContentType) {
135
            $options['ContentType'] = $this->guessContentType($content);
136
        }
137
138
        try {
139
            $this->service->upload($this->bucket, $this->computePath($key), $content, $options);

src/Gaufrette/Adapter/AwsS3.php 1 location

@@ 132-134 (lines=3) @@
129
         * If the ContentType was not already set in the metadata, then we autodetect
130
         * it to prevent everything being served up as binary/octet-stream.
131
         */
132
        if (!isset($options['ContentType']) && $this->detectContentType) {
133
            $options['ContentType'] = $this->guessContentType($content);
134
        }
135
136
        try {
137
            $this->service->putObject($options);