Code Duplication    Length = 10-10 lines in 2 locations

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

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

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.