Code Duplication    Length = 5-5 lines in 2 locations

typo3/sysext/core/Classes/Database/QueryView.php 2 locations

@@ 488-492 (lines=5) @@
485
                foreach ($dataRows as $dataRow) {
486
                    $rowArr[] = $this->resultRowDisplay($dataRow, $GLOBALS['TCA'][$table], $table);
487
                }
488
                if (is_array($this->hookArray['beforeResultTable'])) {
489
                    foreach ($this->hookArray['beforeResultTable'] as $_funcRef) {
490
                        $out .= GeneralUtility::callUserFunction($_funcRef, $GLOBALS['SOBE']->MOD_SETTINGS, $this);
491
                    }
492
                }
493
                if (!empty($rowArr)) {
494
                    $out .= '<table class="table table-striped table-hover">'
495
                        . $this->resultRowTitles($dataRow, $GLOBALS['TCA'][$table], $table) . implode(LF, $rowArr)
@@ 741-745 (lines=5) @@
738
            $out .= '</div>';
739
        }
740
        $_params = [$table => $row];
741
        if (is_array($this->hookArray['additionalButtons'])) {
742
            foreach ($this->hookArray['additionalButtons'] as $_funcRef) {
743
                $out .= GeneralUtility::callUserFunction($_funcRef, $_params, $this);
744
            }
745
        }
746
        $out .= '</td></tr>';
747
        return $out;
748
    }