Code Duplication    Length = 14-14 lines in 2 locations

src/Gaufrette/Adapter/AzureBlobStorage.php 2 locations

@@ 154-167 (lines=14) @@
151
     * {@inheritdoc}
152
     * @throws \RuntimeException
153
     */
154
    public function read($key)
155
    {
156
        $this->init();
157
158
        try {
159
            $blob = $this->blobProxy->getBlob($this->containerName, $key);
160
161
            return stream_get_contents($blob->getContentStream());
162
        } catch (ServiceException $e) {
163
            $this->failIfContainerNotFound($e, sprintf('read key "%s"', $key));
164
165
            return false;
166
        }
167
    }
168
169
    /**
170
     * {@inheritdoc}
@@ 288-301 (lines=14) @@
285
     * {@inheritdoc}
286
     * @throws \RuntimeException
287
     */
288
    public function delete($key)
289
    {
290
        $this->init();
291
292
        try {
293
            $this->blobProxy->deleteBlob($this->containerName, $key);
294
295
            return true;
296
        } catch (ServiceException $e) {
297
            $this->failIfContainerNotFound($e, sprintf('delete key "%s"', $key));
298
299
            return false;
300
        }
301
    }
302
303
    /**
304
     * {@inheritdoc}