Code Duplication    Length = 4-4 lines in 2 locations

src/Event/EventLDProjector.php 2 locations

@@ 623-626 (lines=4) @@
620
621
        $eventLd = $document->getBody();
622
623
        if ($translationApplied->getTitle() !== null) {
624
            $eventLd->name->{$translationApplied->getLanguage()->getCode(
625
            )} = $translationApplied->getTitle()->toNative();
626
        }
627
628
        if ($translationApplied->getLongDescription() !== null) {
629
            $eventLd->description->{$translationApplied->getLanguage()->getCode(
@@ 628-631 (lines=4) @@
625
            )} = $translationApplied->getTitle()->toNative();
626
        }
627
628
        if ($translationApplied->getLongDescription() !== null) {
629
            $eventLd->description->{$translationApplied->getLanguage()->getCode(
630
            )} = $translationApplied->getLongDescription()->toNative();
631
        }
632
633
        $this->repository->save($document->withBody($eventLd));
634
    }