Code Duplication    Length = 4-6 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 205-210 (lines=6) @@
202
                if ($ftrs['grouping_cell_type'] == 'row') {
203
                    $sReturn .= $tbl['Head'];
204
                }
205
                if (isset($iStartingPageRecord)) {
206
                    $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge);
207
                    $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [
208
                                'colspan' => $iTableColumns
209
                            ]), 'tr');
210
                }
211
                $tbl['Header'] = '<tr>';
212
                if (isset($ftrs['grouping_cell'])) { // Grouping columns
213
                    $header = array_diff_key($header, [$ftrs['grouping_cell'] => '']);
@@ 455-458 (lines=4) @@
452
            }
453
            $sReturn .= '</tr>';
454
        }
455
        if (isset($iStartingPageRecord)) {
456
            $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]);
457
            $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>';
458
        }
459
        $sReturn .= '</tbody></table>';
460
        if ($ftrs['grouping_cell_type'] == 'tab') {
461
            if (isset($ftrs['showGroupingCounter'])) {