Code Duplication    Length = 3-3 lines in 2 locations

typo3/sysext/indexed_search/Classes/Controller/SearchController.php 2 locations

@@ 790-792 (lines=3) @@
787
                // Possibly shorten string:
788
                if (!$k) {
789
                    // First entry at all (only cropped on the frontside)
790
                    if ($strLen > $postPreLgd) {
791
                        $output[$k] = $divider . preg_replace('/^[^[:space:]]+[[:space:]]/', '', GeneralUtility::fixed_lgd_cs($parts[$k], -($postPreLgd - $postPreLgd_offset)));
792
                    }
793
                } elseif ($summaryLgd > $summaryMax || !isset($parts[$k + 1])) {
794
                    // In case summary length is exceed OR if there are no more entries at all:
795
                    if ($strLen > $postPreLgd) {
@@ 795-797 (lines=3) @@
792
                    }
793
                } elseif ($summaryLgd > $summaryMax || !isset($parts[$k + 1])) {
794
                    // In case summary length is exceed OR if there are no more entries at all:
795
                    if ($strLen > $postPreLgd) {
796
                        $output[$k] = preg_replace('/[[:space:]][^[:space:]]+$/', '', GeneralUtility::fixed_lgd_cs($parts[$k], ($postPreLgd - $postPreLgd_offset))) . $divider;
797
                    }
798
                } else {
799
                    if ($strLen > $postPreLgd * 2) {
800
                        $output[$k] = preg_replace('/[[:space:]][^[:space:]]+$/', '', GeneralUtility::fixed_lgd_cs($parts[$k], ($postPreLgd - $postPreLgd_offset))) . $divider . preg_replace('/^[^[:space:]]+[[:space:]]/', '', GeneralUtility::fixed_lgd_cs($parts[$k], -($postPreLgd - $postPreLgd_offset)));