Code Duplication    Length = 4-6 lines in 2 locations

src/Browscap.php 2 locations

@@ 370-373 (lines=4) @@
367
            throw new FetcherException('an error occured while fetching remote data', 0, $e);
368
        }
369
370
        if (false === $content) {
371
            $error = error_get_last();
372
            throw FetcherException::httpError($this->getLoader()->getRemoteIniUrl(), $error['message']);
373
        }
374
375
        $this->getLogger()->debug('finished fetching remote file');
376
        $this->getLogger()->debug('started storing remote file into local file');
@@ 464-469 (lines=6) @@
461
                throw new FetcherException('an error occured while loading remote data', 0, $e);
462
            }
463
464
            if (false === $content) {
465
                $internalLoader = $this->getLoader()->getLoader();
466
                $error          = error_get_last();
467
468
                throw FetcherException::httpError($internalLoader->getUri(), $error['message']);
469
            }
470
471
            $this->getLogger()->debug('finished fetching remote file');
472