Code Duplication    Length = 9-9 lines in 3 locations

src/Gaufrette/Adapter/AwsS3.php 3 locations

@@ 183-191 (lines=9) @@
180
    /**
181
     * {@inheritdoc}
182
     */
183
    public function mtime($key)
184
    {
185
        try {
186
            $result = $this->service->headObject($this->getOptions($key));
187
188
            return strtotime($result['LastModified']);
189
        } catch (\Exception $e) {
190
            return false;
191
        }
192
    }
193
194
    /**
@@ 197-205 (lines=9) @@
194
    /**
195
     * {@inheritdoc}
196
     */
197
    public function size($key)
198
    {
199
        try {
200
            $result = $this->service->headObject($this->getOptions($key));
201
202
            return $result['ContentLength'];
203
        } catch (\Exception $e) {
204
            return false;
205
        }
206
    }
207
208
    /**
@@ 352-360 (lines=9) @@
349
        return $fileInfo->buffer($content);
350
    }
351
352
    public function mimeType($key)
353
    {
354
        try {
355
            $result = $this->service->headObject($this->getOptions($key));
356
            return ($result['ContentType']);
357
        } catch (\Exception $e) {
358
            return false;
359
        }
360
    }
361
}
362