Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/UserGroupManager.php 1 location

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

Core/Executor/ContentManager.php 1 location

@@ 599-606 (lines=8) @@
596
        }
597
    }
598
599
    protected function setSection(Content $content, $sectionKey)
600
    {
601
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
602
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
603
604
        $sectionService = $this->repository->getSectionService();
605
        $sectionService->assignSection($content->contentInfo, $section);
606
    }
607
608
    protected function setObjectStates(Content $content, array $stateKeys)
609
    {