Code Duplication    Length = 5-5 lines in 2 locations

typo3/sysext/frontend/Classes/ContentObject/Menu/GraphicalMenuContentObject.php 1 location

@@ 401-405 (lines=5) @@
398
                // !count($this->menuArr[$key]) means that this item is a dummyItem
399
                $this->I['name'] = '';
400
                // Set access key
401
                if ($this->mconf['accessKey']) {
402
                    $this->I['accessKey'] = $this->accessKey($this->I['title']);
403
                } else {
404
                    $this->I['accessKey'] = [];
405
                }
406
                // Make link tag
407
                $this->I['val']['ATagParams'] = $this->WMcObj->getATagParams($this->I['val']);
408
                if (isset($this->I['val']['additionalParams.'])) {

typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php 1 location

@@ 80-84 (lines=5) @@
77
            $this->I['pid'] = $this->menuArr[$key]['pid'];
78
            $this->I['spacer'] = $this->menuArr[$key]['isSpacer'];
79
            // Set access key
80
            if ($this->mconf['accessKey']) {
81
                $this->I['accessKey'] = $this->accessKey($this->I['title']);
82
            } else {
83
                $this->I['accessKey'] = [];
84
            }
85
            // Make link tag
86
            $this->I['val']['ATagParams'] = $this->WMcObj->getATagParams($this->I['val']);
87
            if (isset($this->I['val']['additionalParams.'])) {