Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 1 location

@@ 389-392 (lines=4) @@
386
                case 'content_type_id':
387
                    $value = $content->contentInfo->contentTypeId;
388
                    break;
389
                case 'content_type_identifier':
390
                    $contentTypeService = $this->repository->getContentTypeService();
391
                    $value = $contentTypeService->loadContentType($content->contentInfo->contentTypeId)->identifier;
392
                    break;
393
                case 'current_version':
394
                case 'current_version_no':
395
                    $value = $content->contentInfo->currentVersionNo;

Core/Executor/LocationManager.php 1 location

@@ 286-289 (lines=4) @@
283
                case 'content_type_id':
284
                    $value = $location->contentInfo->contentTypeId;
285
                    break;
286
                case 'content_type_identifier':
287
                    $contentTypeService = $this->repository->getContentTypeService();
288
                    $value = $contentTypeService->loadContentType($location->contentInfo->contentTypeId)->identifier;
289
                    break;
290
                case 'current_version':
291
                case 'current_version_no':
292
                    $value = $location->contentInfo->currentVersionNo;