Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

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