Code Duplication    Length = 6-6 lines in 3 locations

src/BrowscapUpdater.php 3 locations

@@ 238-243 (lines=6) @@
235
        /** @var \Psr\Http\Message\ResponseInterface $response */
236
        $response = $this->getClient()->get($uri, ['timeout' => 5]);
237
238
        if ($response->getStatusCode() !== 200) {
239
            throw new FetcherException(
240
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
241
                . $response->getStatusCode()
242
            );
243
        }
244
245
        try {
246
            $content = $response->getBody()->getContents();
@@ 298-303 (lines=6) @@
295
        /** @var \Psr\Http\Message\ResponseInterface $response */
296
        $response = $this->getClient()->get($uri, ['timeout' => 5]);
297
298
        if ($response->getStatusCode() !== 200) {
299
            throw new FetcherException(
300
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
301
                . $response->getStatusCode()
302
            );
303
        }
304
305
        try {
306
            $content = $response->getBody()->getContents();
@@ 348-353 (lines=6) @@
345
        /** @var \Psr\Http\Message\ResponseInterface $response */
346
        $response = $this->getClient()->get($uri, ['timeout' => 5]);
347
348
        if ($response->getStatusCode() !== 200) {
349
            throw new FetcherException(
350
                'an error occured while fetching version data from URI ' . $uri . ': StatusCode was '
351
                . $response->getStatusCode()
352
            );
353
        }
354
355
        try {
356
            $remoteVersion = $response->getBody()->getContents();