Code Duplication    Length = 10-10 lines in 2 locations

src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location

@@ 250-259 (lines=10) @@
247
     * @param PlaceDeleted $placeDeleted
248
     * @return null
249
     */
250
    protected function applyPlaceDeleted(PlaceDeleted $placeDeleted)
251
    {
252
        $document = $this->loadDocumentFromRepository($placeDeleted);
253
254
        $jsonLD = $document->getBody();
255
256
        $jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName();
257
258
        return $document->withBody($jsonLD);
259
    }
260
261
    /**
262
     * Apply the major info updated command to the projector.

src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location

@@ 551-560 (lines=10) @@
548
     * @param EventDeleted $eventDeleted
549
     * @return null
550
     */
551
    protected function applyEventDeleted(EventDeleted $eventDeleted)
552
    {
553
        $document = $this->loadDocumentFromRepository($eventDeleted);
554
555
        $jsonLD = $document->getBody();
556
557
        $jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName();
558
559
        return $document->withBody($jsonLD);
560
    }
561
562
    /**
563
     * Apply the major info updated command to the projector.