Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 1 location

@@ 424-427 (lines=4) @@
421
                case 'section_id':
422
                    $value = $content->contentInfo->sectionId;
423
                    break;
424
                case 'section_identifier':
425
                    $sectionService = $this->repository->getSectionService();
426
                    $value = $sectionService->loadSection($content->contentInfo->sectionId)->identifier;
427
                    break;
428
                default:
429
                    if (strpos($reference['attribute'], 'object_state.') === 0) {
430
                        $stateGroupKey = substr($reference['attribute'], 13);

Core/Executor/LocationManager.php 1 location

@@ 324-327 (lines=4) @@
321
                case 'section_id':
322
                    $value = $location->contentInfo->sectionId;
323
                    break;
324
                case 'section_identifier':
325
                    $sectionService = $this->repository->getSectionService();
326
                    $value = $sectionService->loadSection($location->contentInfo->sectionId)->identifier;
327
                    break;
328
                case 'sort_field':
329
                    $value = $this->sortConverter->sortField2Hash($location->sortField);
330
                    break;