Skip to content

Commit

Permalink
Scrutinizer 50/50
Browse files Browse the repository at this point in the history
One false positive, one correct "unused parameter".
  • Loading branch information
oleibman committed Nov 28, 2023
1 parent dba3f74 commit f2d01aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PhpSpreadsheet/Writer/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,9 @@ public static function winFileToUrl($filename, bool $mpdf = false)
/**
* Generate image tag in cell.
*
* @param Worksheet $worksheet \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
* @param string $coordinates Cell coordinates
*/
private function writeImageInCell(Worksheet $worksheet, string $coordinates): string
private function writeImageInCell(string $coordinates): string
{
// Construct HTML
$html = '';
Expand Down Expand Up @@ -1415,7 +1414,7 @@ private function generateRowSpans(string $html, int $rowSpan, int $colSpan): str
private function generateRowWriteCell(string &$html, Worksheet $worksheet, string $coordinate, string $cellType, string $cellData, int $colSpan, int $rowSpan, $cssClass, int $colNum, int $sheetIndex, int $row): void
{
// Image?
$htmlx = $this->writeImageInCell($worksheet, $coordinate);
$htmlx = $this->writeImageInCell($coordinate);
// Chart?
$htmlx .= $this->generateRowIncludeCharts($worksheet, $coordinate);
// Column start
Expand Down

0 comments on commit f2d01aa

Please sign in to comment.