Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/UserGroupManager.php 1 location

@@ 249-256 (lines=8) @@
246
        return $refs;
247
    }
248
249
    protected function setSection(Content $content, $sectionKey)
250
    {
251
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
252
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
253
254
        $sectionService = $this->repository->getSectionService();
255
        $sectionService->assignSection($content->contentInfo, $section);
256
    }
257
}
258

Core/Executor/ContentManager.php 1 location

@@ 719-726 (lines=8) @@
716
        );
717
    }
718
719
    protected function setSection(Content $content, $sectionKey)
720
    {
721
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
722
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
723
724
        $sectionService = $this->repository->getSectionService();
725
        $sectionService->assignSection($content->contentInfo, $section);
726
    }
727
728
    protected function setObjectStates(Content $content, array $stateKeys)
729
    {