Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Writer/Html.php 2 locations

@@ 913-917 (lines=5) @@
910
            // table.sheetN tr { }
911
            $css['table.sheet' . $sheetIndex . ' tr'] = [];
912
913
            if ($rowDimension->getRowHeight() == -1) {
914
                $pt_height = SharedFont::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
915
            } else {
916
                $pt_height = $rowDimension->getRowHeight();
917
            }
918
            $css['table.sheet' . $sheetIndex . ' tr']['height'] = $pt_height . 'pt';
919
            if ($rowDimension->getVisible() === false) {
920
                $css['table.sheet' . $sheetIndex . ' tr']['display'] = 'none';
@@ 931-935 (lines=5) @@
928
                // table.sheetN tr.rowYYYYYY { }
929
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row] = [];
930
931
                if ($rowDimension->getRowHeight() == -1) {
932
                    $pt_height = SharedFont::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
933
                } else {
934
                    $pt_height = $rowDimension->getRowHeight();
935
                }
936
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['height'] = $pt_height . 'pt';
937
                if ($rowDimension->getVisible() === false) {
938
                    $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['display'] = 'none';