Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 519-528 (lines=10) @@
516
     * @param EventDeleted $eventDeleted
517
     * @return null
518
     */
519
    protected function applyEventDeleted(EventDeleted $eventDeleted)
520
    {
521
        $document = $this->loadDocumentFromRepository($eventDeleted);
522
523
        $jsonLD = $document->getBody();
524
525
        $jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName();
526
527
        return $document->withBody($jsonLD);
528
    }
529
530
    /**
531
     * Apply the major info updated command to the projector.

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

@@ 267-276 (lines=10) @@
264
     * @param PlaceDeleted $placeDeleted
265
     * @return null
266
     */
267
    protected function applyPlaceDeleted(PlaceDeleted $placeDeleted)
268
    {
269
        $document = $this->loadDocumentFromRepository($placeDeleted);
270
271
        $jsonLD = $document->getBody();
272
273
        $jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName();
274
275
        return $document->withBody($jsonLD);
276
    }
277
278
    /**
279
     * Apply the major info updated command to the projector.