Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

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