Code Duplication    Length = 8-9 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

@@ 1114-1122 (lines=9) @@
1111
        $highestColumnIndex = \Spreadsheet\Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1;
1112
        $i = -1;
1113
        while ($i++ < $highestColumnIndex) {
1114
            if (!$this->isPdf) {
1115
                if (!$this->useInlineCss) {
1116
                    $html .= '        <col class="col' . $i . '">' . PHP_EOL;
1117
                } else {
1118
                    $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) ?
1119
                        $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) : '';
1120
                    $html .= '        <col style="' . $style . '">' . PHP_EOL;
1121
                }
1122
            }
1123
        }
1124
1125
        return $html;
@@ 1176-1183 (lines=8) @@
1173
            }
1174
1175
            // Write row start
1176
            if (!$this->useInlineCss) {
1177
                $html .= '          <tr class="row' . $pRow . '">' . PHP_EOL;
1178
            } else {
1179
                $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow])
1180
                    ? $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : '';
1181
1182
                $html .= '          <tr style="' . $style . '">' . PHP_EOL;
1183
            }
1184
1185
            // Write cells
1186
            $colNum = 0;