Code Duplication    Length = 9-9 lines in 2 locations

src/Offer/ReadModel/JSONLD/OfferLDProjector.php 1 location

@@ 1035-1043 (lines=9) @@
1032
     * @param DomainMessage $domainMessage
1033
     * @return JsonDocument
1034
     */
1035
    private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage)
1036
    {
1037
        $body = $jsonDocument->getBody();
1038
1039
        $recordedDateTime = RecordedOn::fromDomainMessage($domainMessage);
1040
        $body->modified = $recordedDateTime->toString();
1041
1042
        return $jsonDocument->withBody($body);
1043
    }
1044
}
1045

src/Organizer/OrganizerLDProjector.php 1 location

@@ 491-499 (lines=9) @@
488
     * @param DomainMessage $domainMessage
489
     * @return JsonDocument
490
     */
491
    private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage)
492
    {
493
        $body = $jsonDocument->getBody();
494
495
        $recordedDateTime = RecordedOn::fromDomainMessage($domainMessage);
496
        $body->modified = $recordedDateTime->toString();
497
498
        return $jsonDocument->withBody($body);
499
    }
500
}
501