Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 610-617 (lines=8) @@
607
                }
608
609
                // Rows to repeat
610
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
611
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
612
                    $rowmin = $repeat[0] - 1;
613
                    $rowmax = $repeat[1] - 1;
614
                } else {
615
                    $rowmin = 0;
616
                    $rowmax = 65535;
617
                }
618
619
                $this->writeNameShort(
620
                    $i, // sheet index
@@ 715-722 (lines=8) @@
712
                    $colmax = 255;
713
                }
714
                // Rows to repeat
715
                if ($sheetSetup->isRowsToRepeatAtTopSet()) {
716
                    $repeat = $sheetSetup->getRowsToRepeatAtTop();
717
                    $rowmin = $repeat[0] - 1;
718
                    $rowmax = $repeat[1] - 1;
719
                } else {
720
                    $rowmin = 0;
721
                    $rowmax = 65535;
722
                }
723
724
                // construct formula data manually because parser does not recognize absolute 3d cell references
725
                $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax);