Code Duplication    Length = 8-9 lines in 2 locations

src/PhpSpreadsheet/Writer/HTML.php 2 locations

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