Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/ContentManager.php 1 location

@@ 631-638 (lines=8) @@
628
        }
629
    }
630
631
    protected function setSection(Content $content, $sectionKey)
632
    {
633
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
634
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
635
636
        $sectionService = $this->repository->getSectionService();
637
        $sectionService->assignSection($content->contentInfo, $section);
638
    }
639
640
    protected function setObjectStates(Content $content, array $stateKeys)
641
    {

Core/Executor/UserGroupManager.php 1 location

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