Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 1 location

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

Core/Executor/LocationManager.php 1 location

@@ 280-283 (lines=4) @@
277
                case 'content_type_id':
278
                    $value = $location->contentInfo->contentTypeId;
279
                    break;
280
                case 'content_type_identifier':
281
                    $contentTypeService = $this->repository->getContentTypeService();
282
                    $value = $contentTypeService->loadContentType($location->contentInfo->contentTypeId)->identifier;
283
                    break;
284
                case 'current_version':
285
                case 'current_version_no':
286
                    $value = $location->contentInfo->currentVersionNo;