Code Duplication    Length = 13-13 lines in 2 locations

src/Gaufrette/Adapter/GoogleCloudStorage.php 2 locations

@@ 192-204 (lines=13) @@
189
    /**
190
     * {@inheritdoc}
191
     */
192
    public function exists($key)
193
    {
194
        $this->ensureBucketExists();
195
        $path = $this->computePath($key);
196
197
        try {
198
            $this->service->objects->get($this->bucket, $path);
199
        } catch (\Google_Service_Exception $e) {
200
            return false;
201
        }
202
203
        return true;
204
    }
205
206
    /**
207
     * {@inheritdoc}
@@ 230-242 (lines=13) @@
227
    /**
228
     * {@inheritdoc}
229
     */
230
    public function delete($key)
231
    {
232
        $this->ensureBucketExists();
233
        $path = $this->computePath($key);
234
235
        try {
236
            $this->service->objects->delete($this->bucket, $path);
237
        } catch (\Google_Service_Exception $e) {
238
            return false;
239
        }
240
241
        return true;
242
    }
243
244
    /**
245
     * {@inheritdoc}