Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Writer/Xls/Workbook.php 2 locations

@@ 640-647 (lines=8) @@
637
                }
638
639
                // Rows to repeat
640
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
641
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
642
                    $rowmin = $repeat[0] - 1;
643
                    $rowmax = $repeat[1] - 1;
644
                } else {
645
                    $rowmin = 0;
646
                    $rowmax = 65535;
647
                }
648
649
                $this->writeNameShort(
650
                    $i, // sheet index
@@ 745-752 (lines=8) @@
742
                    $colmax = 255;
743
                }
744
                // Rows to repeat
745
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
746
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
747
                    $rowmin = $repeat[0] - 1;
748
                    $rowmax = $repeat[1] - 1;
749
                } else {
750
                    $rowmin = 0;
751
                    $rowmax = 65535;
752
                }
753
754
                // construct formula data manually because parser does not recognize absolute 3d cell references
755
                $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax);