Code Duplication    Length = 3-5 lines in 2 locations

src/PhpSpreadsheet/Writer/Html.php 2 locations

@@ 1239-1241 (lines=3) @@
1236
            } else {
1237
                $cssClass = [];
1238
                if ($cellType == 'th') {
1239
                    if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) {
1240
                        $this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum];
1241
                    }
1242
                } else {
1243
                    if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) {
1244
                        $this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum];
@@ 1242-1246 (lines=5) @@
1239
                    if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) {
1240
                        $this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum];
1241
                    }
1242
                } else {
1243
                    if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) {
1244
                        $this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum];
1245
                    }
1246
                }
1247
            }
1248
            $colSpan = 1;
1249
            $rowSpan = 1;