Code Duplication    Length = 6-6 lines in 3 locations

src/BrowscapUpdater.php 3 locations

@@ 252-257 (lines=6) @@
249
        /** @var \Psr\Http\Message\ResponseInterface $response */
250
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
251
252
        if ($response->getStatusCode() !== 200) {
253
            throw new FetcherException(
254
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
255
                . $response->getStatusCode()
256
            );
257
        }
258
259
        try {
260
            $content = $response->getBody()->getContents();
@@ 312-317 (lines=6) @@
309
        /** @var \Psr\Http\Message\ResponseInterface $response */
310
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
311
312
        if ($response->getStatusCode() !== 200) {
313
            throw new FetcherException(
314
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
315
                . $response->getStatusCode()
316
            );
317
        }
318
319
        try {
320
            $content = $response->getBody()->getContents();
@@ 363-368 (lines=6) @@
360
        /** @var \Psr\Http\Message\ResponseInterface $response */
361
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
362
363
        if ($response->getStatusCode() !== 200) {
364
            throw new FetcherException(
365
                'an error occured while fetching version data from URI ' . $uri . ': StatusCode was '
366
                . $response->getStatusCode()
367
            );
368
        }
369
370
        try {
371
            $remoteVersion = $response->getBody()->getContents();