Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 534-544 (lines=11) @@
531
                return $itemHTML;
532
            }
533
            // Ajax request: expand
534
            if ($doExpand && $isExpandedFolderIdentifier) {
535
                $ajaxOutput .= $itemHTML;
536
                $invertedDepthOfAjaxRequestedItem = $treeItem['invertedDepth'];
537
            } elseif ($invertedDepthOfAjaxRequestedItem) {
538
                if ($treeItem['invertedDepth'] && ($treeItem['invertedDepth'] < $invertedDepthOfAjaxRequestedItem)) {
539
                    $ajaxOutput .= $itemHTML;
540
                } else {
541
                    $this->ajaxStatus = true;
542
                    return $ajaxOutput;
543
                }
544
            }
545
            $out .= $itemHTML;
546
        }
547
        // If this is an AJAX request, output directly

typo3/sysext/backend/Classes/View/PageTreeView.php 1 location

@@ 197-207 (lines=11) @@
194
                return $itemHTML;
195
            }
196
            // ajax request: expand
197
            if ($doExpand && (int)$expandedPageUid === (int)$uid) {
198
                $ajaxOutput .= $itemHTML;
199
                $invertedDepthOfAjaxRequestedItem = $treeItem['invertedDepth'];
200
            } elseif ($invertedDepthOfAjaxRequestedItem) {
201
                if ($treeItem['invertedDepth'] < $invertedDepthOfAjaxRequestedItem) {
202
                    $ajaxOutput .= $itemHTML;
203
                } else {
204
                    $this->ajaxStatus = true;
205
                    return $ajaxOutput;
206
                }
207
            }
208
            $out .= $itemHTML;
209
        }
210
        if ($ajaxOutput) {