Code Duplication    Length = 10-11 lines in 2 locations

src/AzureAdapter.php 2 locations

@@ 195-205 (lines=11) @@
192
    /**
193
     * {@inheritdoc}
194
     */
195
    public function read($path)
196
    {
197
        $path = $this->applyPathPrefix($path);
198
199
        /** @var \MicrosoftAzure\Storage\Blob\Models\GetBlobResult $blobResult */
200
        $blobResult = $this->client->getBlob($this->container, $path);
201
        $properties = $blobResult->getProperties();
202
        $content = $this->streamContentsToString($blobResult->getContentStream());
203
204
        return $this->normalizeBlobProperties($path, $properties) + ['contents' => $content];
205
    }
206
207
    /**
208
     * {@inheritdoc}
@@ 210-219 (lines=10) @@
207
    /**
208
     * {@inheritdoc}
209
     */
210
    public function readStream($path)
211
    {
212
        $path = $this->applyPathPrefix($path);
213
214
        /** @var \MicrosoftAzure\Storage\Blob\Models\GetBlobResult $blobResult */
215
        $blobResult = $this->client->getBlob($this->container, $path);
216
        $properties = $blobResult->getProperties();
217
218
        return $this->normalizeBlobProperties($path, $properties) + ['stream' => $blobResult->getContentStream()];
219
    }
220
221
    /**
222
     * {@inheritdoc}