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

@@ 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