Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

@@ 893-897 (lines=5) @@
890
            // table.sheetN tr { }
891
            $css['table.sheet' . $sheetIndex . ' tr'] = [];
892
893
            if ($rowDimension->getRowHeight() == -1) {
894
                $pt_height = Font::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
895
            } else {
896
                $pt_height = $rowDimension->getRowHeight();
897
            }
898
            $css['table.sheet' . $sheetIndex . ' tr']['height'] = $pt_height . 'pt';
899
            if ($rowDimension->getVisible() === false) {
900
                $css['table.sheet' . $sheetIndex . ' tr']['display'] = 'none';
@@ 911-915 (lines=5) @@
908
                // table.sheetN tr.rowYYYYYY { }
909
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row] = [];
910
911
                if ($rowDimension->getRowHeight() == -1) {
912
                    $pt_height = Font::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
913
                } else {
914
                    $pt_height = $rowDimension->getRowHeight();
915
                }
916
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['height'] = $pt_height . 'pt';
917
                if ($rowDimension->getVisible() === false) {
918
                    $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['display'] = 'none';