Code Duplication    Length = 4-4 lines in 2 locations

src/Event/EventLDProjector.php 2 locations

@@ 653-656 (lines=4) @@
650
651
        $eventLd = $document->getBody();
652
653
        if ($translationApplied->getTitle() !== null) {
654
            $eventLd->name->{$translationApplied->getLanguage()->getCode(
655
            )} = $translationApplied->getTitle()->toNative();
656
        }
657
658
        if ($translationApplied->getLongDescription() !== null) {
659
            $eventLd->description->{$translationApplied->getLanguage()->getCode(
@@ 658-661 (lines=4) @@
655
            )} = $translationApplied->getTitle()->toNative();
656
        }
657
658
        if ($translationApplied->getLongDescription() !== null) {
659
            $eventLd->description->{$translationApplied->getLanguage()->getCode(
660
            )} = $translationApplied->getLongDescription()->toNative();
661
        }
662
663
        $this->repository->save($document->withBody($eventLd));
664
    }