Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 946-961 (lines=16) @@
943
        }
944
945
        // rowBreaks
946
        if (!empty($aRowBreaks)) {
947
            $objWriter->startElement('rowBreaks');
948
            $objWriter->writeAttribute('count', count($aRowBreaks));
949
            $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks));
950
951
            foreach ($aRowBreaks as $cell) {
952
                $coords = Cell::coordinateFromString($cell);
953
954
                $objWriter->startElement('brk');
955
                $objWriter->writeAttribute('id', $coords[1]);
956
                $objWriter->writeAttribute('man', '1');
957
                $objWriter->endElement();
958
            }
959
960
            $objWriter->endElement();
961
        }
962
963
        // Second, write column breaks
964
        if (!empty($aColumnBreaks)) {
@@ 964-979 (lines=16) @@
961
        }
962
963
        // Second, write column breaks
964
        if (!empty($aColumnBreaks)) {
965
            $objWriter->startElement('colBreaks');
966
            $objWriter->writeAttribute('count', count($aColumnBreaks));
967
            $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks));
968
969
            foreach ($aColumnBreaks as $cell) {
970
                $coords = Cell::coordinateFromString($cell);
971
972
                $objWriter->startElement('brk');
973
                $objWriter->writeAttribute('id', Cell::columnIndexFromString($coords[0]) - 1);
974
                $objWriter->writeAttribute('man', '1');
975
                $objWriter->endElement();
976
            }
977
978
            $objWriter->endElement();
979
        }
980
    }
981
982
    /**