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