Code Duplication    Length = 3-5 lines in 2 locations

src/PhpSpreadsheet/Writer/Html.php 2 locations

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