Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Writer/Html.php 2 locations

@@ 932-936 (lines=5) @@
929
            // table.sheetN tr { }
930
            $css['table.sheet' . $sheetIndex . ' tr'] = [];
931
932
            if ($rowDimension->getRowHeight() == -1) {
933
                $pt_height = SharedFont::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
934
            } else {
935
                $pt_height = $rowDimension->getRowHeight();
936
            }
937
            $css['table.sheet' . $sheetIndex . ' tr']['height'] = $pt_height . 'pt';
938
            if ($rowDimension->getVisible() === false) {
939
                $css['table.sheet' . $sheetIndex . ' tr']['display'] = 'none';
@@ 950-954 (lines=5) @@
947
                // table.sheetN tr.rowYYYYYY { }
948
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row] = [];
949
950
                if ($rowDimension->getRowHeight() == -1) {
951
                    $pt_height = SharedFont::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
952
                } else {
953
                    $pt_height = $rowDimension->getRowHeight();
954
                }
955
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['height'] = $pt_height . 'pt';
956
                if ($rowDimension->getVisible() === false) {
957
                    $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['display'] = 'none';