Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 1 location

@@ 428-431 (lines=4) @@
425
                case 'section_id':
426
                    $value = $content->contentInfo->sectionId;
427
                    break;
428
                case 'section_identifier':
429
                    $sectionService = $this->repository->getSectionService();
430
                    $value = $sectionService->loadSection($content->contentInfo->sectionId)->identifier;
431
                    break;
432
                case 'version_count':
433
                    $contentService = $this->repository->getContentService();
434
                    $value = count($contentService->loadVersions($content->contentInfo));

Core/Executor/LocationManager.php 1 location

@@ 334-337 (lines=4) @@
331
                case 'section_id':
332
                    $value = $location->contentInfo->sectionId;
333
                    break;
334
                case 'section_identifier':
335
                    $sectionService = $this->repository->getSectionService();
336
                    $value = $sectionService->loadSection($location->contentInfo->sectionId)->identifier;
337
                    break;
338
                case 'sort_field':
339
                    $value = $this->sortConverter->sortField2Hash($location->sortField);
340
                    break;