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

@@ 731-738 (lines=8) @@
728
        );
729
    }
730
731
    protected function setSection(Content $content, $sectionKey)
732
    {
733
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
734
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
735
736
        $sectionService = $this->repository->getSectionService();
737
        $sectionService->assignSection($content->contentInfo, $section);
738
    }
739
740
    protected function setObjectStates(Content $content, array $stateKeys)
741
    {