Code Duplication    Length = 6-6 lines in 3 locations

src/BrowscapUpdater.php 3 locations

@@ 342-347 (lines=6) @@
339
        /** @var \Psr\Http\Message\ResponseInterface $response */
340
        $response = $this->getClient()->get($uri, ['timeout' => 5]);
341
342
        if ($response->getStatusCode() !== 200) {
343
            throw new FetcherException(
344
                'an error occured while fetching version data from URI ' . $uri . ': StatusCode was '
345
                . $response->getStatusCode()
346
            );
347
        }
348
349
        try {
350
            $remoteVersion = $response->getBody()->getContents();
@@ 231-236 (lines=6) @@
228
        /** @var \Psr\Http\Message\ResponseInterface $response */
229
        $response = $this->getClient()->get($uri, ['timeout' => 5]);
230
231
        if ($response->getStatusCode() !== 200) {
232
            throw new FetcherException(
233
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
234
                . $response->getStatusCode()
235
            );
236
        }
237
238
        try {
239
            $content = $response->getBody()->getContents();
@@ 291-296 (lines=6) @@
288
        /** @var \Psr\Http\Message\ResponseInterface $response */
289
        $response = $this->getClient()->get($uri, ['timeout' => 5]);
290
291
        if ($response->getStatusCode() !== 200) {
292
            throw new FetcherException(
293
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
294
                . $response->getStatusCode()
295
            );
296
        }
297
298
        try {
299
            $content = $response->getBody()->getContents();