Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/UserGroupManager.php 1 location

@@ 215-222 (lines=8) @@
212
        return $refs;
213
    }
214
215
    protected function setSection(Content $content, $sectionKey)
216
    {
217
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
218
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
219
220
        $sectionService = $this->repository->getSectionService();
221
        $sectionService->assignSection($content->contentInfo, $section);
222
    }
223
}
224

Core/Executor/ContentManager.php 1 location

@@ 668-675 (lines=8) @@
665
        );
666
    }
667
668
    protected function setSection(Content $content, $sectionKey)
669
    {
670
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
671
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
672
673
        $sectionService = $this->repository->getSectionService();
674
        $sectionService->assignSection($content->contentInfo, $section);
675
    }
676
677
    protected function setObjectStates(Content $content, array $stateKeys)
678
    {