Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 617-624 (lines=8) @@
614
                }
615
616
                // Rows to repeat
617
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
618
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
619
                    $rowmin = $repeat[0] - 1;
620
                    $rowmax = $repeat[1] - 1;
621
                } else {
622
                    $rowmin = 0;
623
                    $rowmax = 65535;
624
                }
625
626
                $this->writeNameShort(
627
                    $i, // sheet index
@@ 722-729 (lines=8) @@
719
                    $colmax = 255;
720
                }
721
                // Rows to repeat
722
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
723
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
724
                    $rowmin = $repeat[0] - 1;
725
                    $rowmax = $repeat[1] - 1;
726
                } else {
727
                    $rowmin = 0;
728
                    $rowmax = 65535;
729
                }
730
731
                // construct formula data manually because parser does not recognize absolute 3d cell references
732
                $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax);