Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/UserGroupManager.php 1 location

@@ 249-256 (lines=8) @@
246
        return $refs;
247
    }
248
249
    protected function setSection(Content $content, $sectionKey)
250
    {
251
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
252
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
253
254
        $sectionService = $this->repository->getSectionService();
255
        $sectionService->assignSection($content->contentInfo, $section);
256
    }
257
}
258

Core/Executor/ContentManager.php 1 location

@@ 700-707 (lines=8) @@
697
        );
698
    }
699
700
    protected function setSection(Content $content, $sectionKey)
701
    {
702
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
703
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
704
705
        $sectionService = $this->repository->getSectionService();
706
        $sectionService->assignSection($content->contentInfo, $section);
707
    }
708
709
    protected function setObjectStates(Content $content, array $stateKeys)
710
    {