Code Duplication    Length = 9-9 lines in 2 locations

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

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

src/Organizer/OrganizerLDProjector.php 1 location

@@ 528-536 (lines=9) @@
525
     * @param DomainMessage $domainMessage
526
     * @return JsonDocument
527
     */
528
    private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage)
529
    {
530
        $body = $jsonDocument->getBody();
531
532
        $recordedDateTime = RecordedOn::fromDomainMessage($domainMessage);
533
        $body->modified = $recordedDateTime->toString();
534
535
        return $jsonDocument->withBody($body);
536
    }
537
}
538