Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 629-636 (lines=8) @@
626
                }
627
628
                // Rows to repeat
629
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
630
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
631
                    $rowmin = $repeat[0] - 1;
632
                    $rowmax = $repeat[1] - 1;
633
                } else {
634
                    $rowmin = 0;
635
                    $rowmax = 65535;
636
                }
637
638
                $this->writeNameShort(
639
                    $i, // sheet index
@@ 734-741 (lines=8) @@
731
                    $colmax = 255;
732
                }
733
                // Rows to repeat
734
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
735
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
736
                    $rowmin = $repeat[0] - 1;
737
                    $rowmax = $repeat[1] - 1;
738
                } else {
739
                    $rowmin = 0;
740
                    $rowmax = 65535;
741
                }
742
743
                // construct formula data manually because parser does not recognize absolute 3d cell references
744
                $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax);