Code Duplication    Length = 7-8 lines in 2 locations

typo3/sysext/backend/Classes/Tree/View/ElementBrowserFolderTreeView.php 1 location

@@ 147-154 (lines=8) @@
144
     */
145
    public function PMiconATagWrap($icon, $cmd, $isExpand = true)
146
    {
147
        if (empty($this->scope)) {
148
            $this->scope = [
149
                'class' => static::class,
150
                'script' => $this->thisScript,
151
                'ext_noTempRecyclerDirs' => $this->ext_noTempRecyclerDirs,
152
                'browser' => $this->linkParameterProvider->getUrlParameters([]),
153
            ];
154
        }
155
156
        return parent::PMiconATagWrap($icon, $cmd, $isExpand);
157
    }

typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php 1 location

@@ 135-141 (lines=7) @@
132
     */
133
    public function PMiconATagWrap($icon, $cmd, $isExpand = true)
134
    {
135
        if (empty($this->scope)) {
136
            $this->scope = [
137
                'class' => static::class,
138
                'script' => $this->thisScript,
139
                'ext_noTempRecyclerDirs' => $this->ext_noTempRecyclerDirs
140
            ];
141
        }
142
143
        if ($this->thisScript) {
144
            // Activates dynamic AJAX based tree