Code Duplication    Length = 8-8 lines in 2 locations

Core/Executor/UserGroupManager.php 1 location

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

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
    {