Code Duplication    Length = 3-5 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

@@ 1280-1282 (lines=3) @@
1277
                        $cssClass .= ' ' . $cell->getDataType();
1278
                    } else {
1279
                        if ($cellType == 'th') {
1280
                            if (isset($this->cssStyles['th.style' . $cell->getXfIndex()])) {
1281
                                $cssClass = array_merge($cssClass, $this->cssStyles['th.style' . $cell->getXfIndex()]);
1282
                            }
1283
                        } else {
1284
                            if (isset($this->cssStyles['td.style' . $cell->getXfIndex()])) {
1285
                                $cssClass = array_merge($cssClass, $this->cssStyles['td.style' . $cell->getXfIndex()]);
@@ 1283-1287 (lines=5) @@
1280
                            if (isset($this->cssStyles['th.style' . $cell->getXfIndex()])) {
1281
                                $cssClass = array_merge($cssClass, $this->cssStyles['th.style' . $cell->getXfIndex()]);
1282
                            }
1283
                        } else {
1284
                            if (isset($this->cssStyles['td.style' . $cell->getXfIndex()])) {
1285
                                $cssClass = array_merge($cssClass, $this->cssStyles['td.style' . $cell->getXfIndex()]);
1286
                            }
1287
                        }
1288
1289
                        // General horizontal alignment: Actual horizontal alignment depends on dataType
1290
                        $sharedStyle = $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex());