Skip to content

Commit 2e7b4ef

Browse files
committed
Apostrophe Rather Than Quote
1 parent f7069b5 commit 2e7b4ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PhpSpreadsheet/Writer/Html.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ private function generateRowCellDataValue(Worksheet $worksheet, Cell $cell, stri
13601360
* @param null|Cell|string $cell
13611361
* @param array|string $cssClass
13621362
*/
1363-
private function generateRowCellData(Worksheet $worksheet, $cell, &$cssClass, string $cellType): string
1363+
private function generateRowCellData(Worksheet $worksheet, $cell, &$cssClass): string
13641364
{
13651365
$cellData = ' ';
13661366
if ($cell instanceof Cell) {
@@ -1507,7 +1507,7 @@ private function generateRow(Worksheet $worksheet, array $values, $row, $cellTyp
15071507
[$cell, $cssClass, $coordinate] = $this->generateRowCellCss($worksheet, $cellAddress, $row, $colNum);
15081508

15091509
// Cell Data
1510-
$cellData = $this->generateRowCellData($worksheet, $cell, $cssClass, $cellType);
1510+
$cellData = $this->generateRowCellData($worksheet, $cell, $cssClass);
15111511

15121512
// Hyperlink?
15131513
if ($worksheet->hyperlinkExists($coordinate) && !$worksheet->getHyperlink($coordinate)->isInternal()) {

tests/PhpSpreadsheetTests/Writer/Html/Issue3678Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testInlineAndNot(): void
2222
];
2323
$sheet->getStyle('A1')->applyFromArray($styleArray);
2424
$style1 = "vertical-align:bottom; border-bottom:none #000000; border-top:none #000000; border-left:none #000000; border-right:none #000000; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#FFFF00";
25-
$style2 = $style1 . "; text-align:right; width:42pt";
25+
$style2 = $style1 . '; text-align:right; width:42pt';
2626
$writer = new Html($spreadsheet);
2727
$html = $writer->generateHtmlAll();
2828
self::assertStringContainsString('td.style1, th.style1 { ' . $style1 . ' }', $html);

0 commit comments

Comments
 (0)