Code Duplication    Length = 8-8 lines in 2 locations

eZ/Publish/Core/REST/Server/Controller/Content.php 2 locations

@@ 734-741 (lines=8) @@
731
        );
732
    }
733
734
    public function hideContent(int $contentId): Values\NoContent
735
    {
736
        $contentInfo = $this->repository->getContentService()->loadContentInfo($contentId);
737
738
        $this->repository->getContentService()->hideContent($contentInfo);
739
740
        return new Values\NoContent();
741
    }
742
743
    public function revealContent(int $contentId): Values\NoContent
744
    {
@@ 743-750 (lines=8) @@
740
        return new Values\NoContent();
741
    }
742
743
    public function revealContent(int $contentId): Values\NoContent
744
    {
745
        $contentInfo = $this->repository->getContentService()->loadContentInfo($contentId);
746
747
        $this->repository->getContentService()->revealContent($contentInfo);
748
749
        return new Values\NoContent();
750
    }
751
752
    /**
753
     * Creates and executes a content view.