Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/ContentManager.php 1 location

@@ 387-394 (lines=8) @@
384
        }
385
    }
386
387
    protected function setSection(Content $content, $sectionKey)
388
    {
389
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
390
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
391
392
        $sectionService = $this->repository->getSectionService();
393
        $sectionService->assignSection($content->contentInfo, $section);
394
    }
395
396
    protected function setObjectStates(Content $content, array $stateKeys)
397
    {

Core/Executor/UserGroupManager.php 1 location

@@ 231-238 (lines=8) @@
228
        return true;
229
    }
230
231
    protected function setSection(Content $content, $sectionKey)
232
    {
233
        $sectionKey = $this->referenceResolver->resolveReference($sectionKey);
234
        $section = $this->sectionMatcher->matchOneByKey($sectionKey);
235
236
        $sectionService = $this->repository->getSectionService();
237
        $sectionService->assignSection($content->contentInfo, $section);
238
    }
239
}
240