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, ['connect_timeout' => $this->connectTimeout]);
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, ['connect_timeout' => $this->connectTimeout]);
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();
@@ 349-354 (lines=6) @@
346
        /** @var \Psr\Http\Message\ResponseInterface $response */
347
        $response = $this->getClient()->get($uri, ['connect_timeout' => $this->connectTimeout]);
348
349
        if ($response->getStatusCode() !== 200) {
350
            throw new FetcherException(
351
                'an error occured while fetching version data from URI ' . $uri . ': StatusCode was '
352
                . $response->getStatusCode()
353
            );
354
        }
355
356
        try {
357
            $remoteVersion = $response->getBody()->getContents();