Code Duplication    Length = 5-5 lines in 3 locations

typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 3 locations

@@ 4796-4800 (lines=5) @@
4793
                    case 'level':
4794
                        $retVal = count($tsfe->tmpl->rootLine) - 1;
4795
                        break;
4796
                    case 'leveltitle':
4797
                        $keyParts = GeneralUtility::trimExplode(',', $key);
4798
                        $numericKey = $this->getKey($keyParts[0], $tsfe->tmpl->rootLine);
4799
                        $retVal = $this->rootLineValue($numericKey, 'title', strtolower($keyParts[1]) === 'slide');
4800
                        break;
4801
                    case 'levelmedia':
4802
                        $keyParts = GeneralUtility::trimExplode(',', $key);
4803
                        $numericKey = $this->getKey($keyParts[0], $tsfe->tmpl->rootLine);
@@ 4801-4805 (lines=5) @@
4798
                        $numericKey = $this->getKey($keyParts[0], $tsfe->tmpl->rootLine);
4799
                        $retVal = $this->rootLineValue($numericKey, 'title', strtolower($keyParts[1]) === 'slide');
4800
                        break;
4801
                    case 'levelmedia':
4802
                        $keyParts = GeneralUtility::trimExplode(',', $key);
4803
                        $numericKey = $this->getKey($keyParts[0], $tsfe->tmpl->rootLine);
4804
                        $retVal = $this->rootLineValue($numericKey, 'media', strtolower($keyParts[1]) === 'slide');
4805
                        break;
4806
                    case 'leveluid':
4807
                        $numericKey = $this->getKey($key, $tsfe->tmpl->rootLine);
4808
                        $retVal = $this->rootLineValue($numericKey, 'uid');
@@ 4810-4814 (lines=5) @@
4807
                        $numericKey = $this->getKey($key, $tsfe->tmpl->rootLine);
4808
                        $retVal = $this->rootLineValue($numericKey, 'uid');
4809
                        break;
4810
                    case 'levelfield':
4811
                        $keyParts = GeneralUtility::trimExplode(',', $key);
4812
                        $numericKey = $this->getKey($keyParts[0], $tsfe->tmpl->rootLine);
4813
                        $retVal = $this->rootLineValue($numericKey, $keyParts[1], strtolower($keyParts[2]) === 'slide');
4814
                        break;
4815
                    case 'fullrootline':
4816
                        $keyParts = GeneralUtility::trimExplode(',', $key);
4817
                        $fullKey = (int)$keyParts[0] - count($tsfe->tmpl->rootLine) + count($tsfe->rootLine);