Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/ContentManager.php 1 location

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

Core/Executor/UserGroupManager.php 1 location

@@ 215-222 (lines=8) @@
212
        return $refs;
213
    }
214
215
    protected function setSection(Content $content, $sectionKey)
216
    {
217
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
218
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
219
220
        $sectionService = $this->repository->getSectionService();
221
        $sectionService->assignSection($content->contentInfo, $section);
222
    }
223
}
224