Code Duplication    Length = 6-6 lines in 3 locations

src/BrowscapUpdater.php 3 locations

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