Code Duplication    Length = 16-16 lines in 2 locations

src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php 2 locations

@@ 919-934 (lines=16) @@
916
        }
917
918
        // rowBreaks
919
        if (!empty($aRowBreaks)) {
920
            $objWriter->startElement('rowBreaks');
921
            $objWriter->writeAttribute('count', count($aRowBreaks));
922
            $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks));
923
924
            foreach ($aRowBreaks as $cell) {
925
                $coords = Coordinate::coordinateFromString($cell);
926
927
                $objWriter->startElement('brk');
928
                $objWriter->writeAttribute('id', $coords[1]);
929
                $objWriter->writeAttribute('man', '1');
930
                $objWriter->endElement();
931
            }
932
933
            $objWriter->endElement();
934
        }
935
936
        // Second, write column breaks
937
        if (!empty($aColumnBreaks)) {
@@ 937-952 (lines=16) @@
934
        }
935
936
        // Second, write column breaks
937
        if (!empty($aColumnBreaks)) {
938
            $objWriter->startElement('colBreaks');
939
            $objWriter->writeAttribute('count', count($aColumnBreaks));
940
            $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks));
941
942
            foreach ($aColumnBreaks as $cell) {
943
                $coords = Coordinate::coordinateFromString($cell);
944
945
                $objWriter->startElement('brk');
946
                $objWriter->writeAttribute('id', Coordinate::columnIndexFromString($coords[0]) - 1);
947
                $objWriter->writeAttribute('man', '1');
948
                $objWriter->endElement();
949
            }
950
951
            $objWriter->endElement();
952
        }
953
    }
954
955
    /**