Code Duplication    Length = 3-5 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

@@ 1221-1223 (lines=3) @@
1218
                } else {
1219
                    $cssClass = [];
1220
                    if ($cellType == 'th') {
1221
                        if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) {
1222
                            $this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum];
1223
                        }
1224
                    } else {
1225
                        if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) {
1226
                            $this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum];
@@ 1224-1228 (lines=5) @@
1221
                        if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) {
1222
                            $this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum];
1223
                        }
1224
                    } else {
1225
                        if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) {
1226
                            $this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum];
1227
                        }
1228
                    }
1229
                }
1230
                $colSpan = 1;
1231
                $rowSpan = 1;