Code Duplication    Length = 9-10 lines in 2 locations

typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php 2 locations

@@ 634-643 (lines=10) @@
631
                    $links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($pageText, [$pointerName => $a ?: ''], $pi_isOnlyFields), $wrapper['inactiveLinkWrap']);
632
                }
633
            }
634
            if ($pointer < $totalPages - 1 || $showFirstLast) {
635
                // Link to next page
636
                if ($pointer >= $totalPages - 1) {
637
                    $label = $this->pi_getLL('pi_list_browseresults_next', 'Next >');
638
                    $links[] = $this->cObj->wrap($hscText ? htmlspecialchars($label) : $label, $wrapper['disabledLinkWrap']);
639
                } else {
640
                    $label = $this->pi_getLL('pi_list_browseresults_next', 'Next >');
641
                    $links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($hscText ? htmlspecialchars($label) : $label, [$pointerName => $pointer + 1], $pi_isOnlyFields), $wrapper['inactiveLinkWrap']);
642
                }
643
            }
644
            // Link to last page
645
            if ($showFirstLast) {
646
                if ($pointer < $totalPages - 1) {
@@ 645-653 (lines=9) @@
642
                }
643
            }
644
            // Link to last page
645
            if ($showFirstLast) {
646
                if ($pointer < $totalPages - 1) {
647
                    $label = $this->pi_getLL('pi_list_browseresults_last', 'Last >>');
648
                    $links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($hscText ? htmlspecialchars($label) : $label, [$pointerName => $totalPages - 1], $pi_isOnlyFields), $wrapper['inactiveLinkWrap']);
649
                } else {
650
                    $label = $this->pi_getLL('pi_list_browseresults_last', 'Last >>');
651
                    $links[] = $this->cObj->wrap($hscText ? htmlspecialchars($label) : $label, $wrapper['disabledLinkWrap']);
652
                }
653
            }
654
            $theLinks = $this->cObj->wrap(implode(LF, $links), $wrapper['browseLinksWrap']);
655
        } else {
656
            $theLinks = '';