Code Duplication    Length = 10-11 lines in 2 locations

src/AzureAdapter.php 2 locations

@@ 174-184 (lines=11) @@
171
    /**
172
     * {@inheritdoc}
173
     */
174
    public function read($path)
175
    {
176
        $path = $this->applyPathPrefix($path);
177
178
        /** @var \WindowsAzure\Blob\Models\GetBlobResult $blobResult */
179
        $blobResult = $this->client->getBlob($this->container, $path);
180
        $properties = $blobResult->getProperties();
181
        $content = $this->streamContentsToString($blobResult->getContentStream());
182
183
        return $this->normalizeBlobProperties($path, $properties) + ['contents' => $content];
184
    }
185
186
    /**
187
     * {@inheritdoc}
@@ 189-198 (lines=10) @@
186
    /**
187
     * {@inheritdoc}
188
     */
189
    public function readStream($path)
190
    {
191
        $path = $this->applyPathPrefix($path);
192
193
        /** @var \WindowsAzure\Blob\Models\GetBlobResult $blobResult */
194
        $blobResult = $this->client->getBlob($this->container, $path);
195
        $properties = $blobResult->getProperties();
196
197
        return $this->normalizeBlobProperties($path, $properties) + ['stream' => $blobResult->getContentStream()];
198
    }
199
200
    /**
201
     * {@inheritdoc}