Code Duplication    Length = 6-6 lines in 3 locations

src/BrowscapUpdater.php 3 locations

@@ 241-246 (lines=6) @@
238
        /** @var \Psr\Http\Message\ResponseInterface $response */
239
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
240
241
        if ($response->getStatusCode() !== 200) {
242
            throw new FetcherException(
243
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
244
                . $response->getStatusCode()
245
            );
246
        }
247
248
        try {
249
            $content = $response->getBody()->getContents();
@@ 301-306 (lines=6) @@
298
        /** @var \Psr\Http\Message\ResponseInterface $response */
299
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
300
301
        if ($response->getStatusCode() !== 200) {
302
            throw new FetcherException(
303
                'an error occured while fetching remote data from URI ' . $uri . ': StatusCode was '
304
                . $response->getStatusCode()
305
            );
306
        }
307
308
        try {
309
            $content = $response->getBody()->getContents();
@@ 352-357 (lines=6) @@
349
        /** @var \Psr\Http\Message\ResponseInterface $response */
350
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
351
352
        if ($response->getStatusCode() !== 200) {
353
            throw new FetcherException(
354
                'an error occured while fetching version data from URI ' . $uri . ': StatusCode was '
355
                . $response->getStatusCode()
356
            );
357
        }
358
359
        try {
360
            $remoteVersion = $response->getBody()->getContents();