Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/UserGroupManager.php 1 location

@@ 224-231 (lines=8) @@
221
        return true;
222
    }
223
224
    protected function setSection(Content $content, $sectionKey)
225
    {
226
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
227
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
228
229
        $sectionService = $this->repository->getSectionService();
230
        $sectionService->assignSection($content->contentInfo, $section);
231
    }
232
}
233

Core/Executor/ContentManager.php 1 location

@@ 639-646 (lines=8) @@
636
        }
637
    }
638
639
    protected function setSection(Content $content, $sectionKey)
640
    {
641
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
642
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
643
644
        $sectionService = $this->repository->getSectionService();
645
        $sectionService->assignSection($content->contentInfo, $section);
646
    }
647
648
    protected function setObjectStates(Content $content, array $stateKeys)
649
    {