Code Duplication    Length = 8-9 lines in 2 locations

src/PhpSpreadsheet/Writer/Html.php 2 locations

@@ 1156-1164 (lines=9) @@
1153
        $highestColumnIndex = Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1;
1154
        $i = -1;
1155
        while ($i++ < $highestColumnIndex) {
1156
            if (!$this->isPdf) {
1157
                if (!$this->useInlineCss) {
1158
                    $html .= '        <col class="col' . $i . '">' . PHP_EOL;
1159
                } else {
1160
                    $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) ?
1161
                        $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) : '';
1162
                    $html .= '        <col style="' . $style . '">' . PHP_EOL;
1163
                }
1164
            }
1165
        }
1166
1167
        return $html;
@@ 1220-1227 (lines=8) @@
1217
        }
1218
1219
        // Write row start
1220
        if (!$this->useInlineCss) {
1221
            $html .= '          <tr class="row' . $pRow . '">' . PHP_EOL;
1222
        } else {
1223
            $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow])
1224
                ? $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : '';
1225
1226
            $html .= '          <tr style="' . $style . '">' . PHP_EOL;
1227
        }
1228
1229
        // Write cells
1230
        $colNum = 0;