Code Duplication    Length = 9-9 lines in 2 locations

src/Gaufrette/Adapter/AwsS3.php 2 locations

@@ 163-171 (lines=9) @@
160
    /**
161
     * {@inheritdoc}
162
     */
163
    public function mtime($key)
164
    {
165
        try {
166
            $result = $this->service->headObject($this->getOptions($key));
167
168
            return strtotime($result['LastModified']);
169
        } catch (\Exception $e) {
170
            return false;
171
        }
172
    }
173
174
    /**
@@ 177-185 (lines=9) @@
174
    /**
175
     * {@inheritdoc}
176
     */
177
    public function size($key)
178
    {
179
        try {
180
            $result = $this->service->headObject($this->getOptions($key));
181
182
            return $result['ContentLength'];
183
        } catch (\Exception $e) {
184
            return false;
185
        }
186
    }
187
188
    /**