Code Duplication    Length = 5-5 lines in 2 locations

src/Modules/Extractors/ImageExtractor.php 2 locations

@@ 468-472 (lines=5) @@
465
466
        $locallyStoredImage = $this->getLocallyStoredImage($mainImage->getImageSrc());
467
468
        if (!empty($locallyStoredImage)) {
469
            $mainImage->setBytes($locallyStoredImage->getBytes());
470
            $mainImage->setHeight($locallyStoredImage->getHeight());
471
            $mainImage->setWidth($locallyStoredImage->getWidth());
472
        }
473
474
        return $this->ensureMinimumImageSize($mainImage);
475
    }
@@ 576-580 (lines=5) @@
573
574
        $locallyStoredImage = $this->getLocallyStoredImage($mainImage->getImageSrc());
575
576
        if (!empty($locallyStoredImage)) {
577
            $mainImage->setBytes($locallyStoredImage->getBytes());
578
            $mainImage->setHeight($locallyStoredImage->getHeight());
579
            $mainImage->setWidth($locallyStoredImage->getWidth());
580
        }
581
582
        return $this->ensureMinimumImageSize($mainImage);
583
    }