Code Duplication    Length = 8-10 lines in 2 locations

src/Gaufrette/Adapter/GoogleCloudClientStorage.php 2 locations

@@ 145-154 (lines=10) @@
142
    /**
143
     * {@inheritdoc}
144
     */
145
    public function exists($key)
146
    {
147
        $this->isBucket();
148
        $object = $this->bucket->object($this->computePath($key));
149
        if ($object->exists())
150
        {
151
            return true;
152
        }
153
        return false;
154
    }
155
    
156
    /**
157
     * {@inheritdoc}
@@ 212-219 (lines=8) @@
209
    /**
210
     * {@inheritdoc}
211
     */
212
    public function delete($key)
213
    {
214
        $this->isBucket();
215
        $object = $this->bucket->object($this->computePath($key));
216
        $object->delete();
217
        $this->setMetadata($key, null);
218
        return true;
219
    }
220
    
221
    /**
222
     * {@inheritdoc}