Code Duplication    Length = 9-9 lines in 3 locations

src/Gaufrette/Adapter/AwsS3.php 3 locations

@@ 228-236 (lines=9) @@
225
    /**
226
     * {@inheritdoc}
227
     */
228
    public function mtime($key)
229
    {
230
        try {
231
            $result = $this->service->headObject($this->getOptions($key));
232
233
            return strtotime($result['LastModified']);
234
        } catch (\Exception $e) {
235
            return false;
236
        }
237
    }
238
239
    /**
@@ 242-250 (lines=9) @@
239
    /**
240
     * {@inheritdoc}
241
     */
242
    public function size($key)
243
    {
244
        try {
245
            $result = $this->service->headObject($this->getOptions($key));
246
247
            return $result['ContentLength'];
248
        } catch (\Exception $e) {
249
            return false;
250
        }
251
    }
252
253
    /**
@@ 494-502 (lines=9) @@
491
        return $fileInfo->buffer($content);
492
    }
493
494
    public function mimeType($key)
495
    {
496
        try {
497
            $result = $this->service->headObject($this->getOptions($key));
498
            return ($result['ContentType']);
499
        } catch (\Exception $e) {
500
            return false;
501
        }
502
    }
503
}
504