Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

@@ 909-913 (lines=5) @@
906
            // table.sheetN tr { }
907
            $css['table.sheet' . $sheetIndex . ' tr'] = [];
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']['height'] = $pt_height . 'pt';
915
            if ($rowDimension->getVisible() === false) {
916
                $css['table.sheet' . $sheetIndex . ' tr']['display'] = 'none';
@@ 927-931 (lines=5) @@
924
                // table.sheetN tr.rowYYYYYY { }
925
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row] = [];
926
927
                if ($rowDimension->getRowHeight() == -1) {
928
                    $pt_height = Font::getDefaultRowHeightByFont($this->spreadsheet->getDefaultStyle()->getFont());
929
                } else {
930
                    $pt_height = $rowDimension->getRowHeight();
931
                }
932
                $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['height'] = $pt_height . 'pt';
933
                if ($rowDimension->getVisible() === false) {
934
                    $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['display'] = 'none';