Code Duplication    Length = 14-14 lines in 2 locations

src/Gaufrette/Adapter/AzureBlobStorage.php 2 locations

@@ 124-137 (lines=14) @@
121
    /**
122
     * {@inheritdoc}
123
     */
124
    public function read($key)
125
    {
126
        $this->init();
127
128
        try {
129
            $blob = $this->blobProxy->getBlob($this->containerName, $key);
130
131
            return stream_get_contents($blob->getContentStream());
132
        } catch (ServiceException $e) {
133
            $this->failIfContainerNotFound($e, sprintf('read key "%s"', $key));
134
135
            return false;
136
        }
137
    }
138
139
    /**
140
     * {@inheritdoc}
@@ 257-270 (lines=14) @@
254
    /**
255
     * {@inheritdoc}
256
     */
257
    public function delete($key)
258
    {
259
        $this->init();
260
261
        try {
262
            $this->blobProxy->deleteBlob($this->containerName, $key);
263
264
            return true;
265
        } catch (ServiceException $e) {
266
            $this->failIfContainerNotFound($e, sprintf('delete key "%s"', $key));
267
268
            return false;
269
        }
270
    }
271
272
    /**
273
     * {@inheritdoc}