Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 1 location

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

Core/Executor/LocationManager.php 1 location

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