Skip to content

Commit

Permalink
Adjust WithCharts into function close() (#4227)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCoolMind authored Oct 25, 2024
1 parent 9160897 commit b4d8b87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ public function open($sheetExport)
$this->hasStrictNullComparison($sheetExport)
);
}

if ($sheetExport instanceof WithCharts) {
$this->addCharts($sheetExport->charts());
}
}

/**
Expand Down Expand Up @@ -396,6 +392,10 @@ public function toCollection($import, int $startRow = null, $nullValue = null, $
*/
public function close($sheetExport)
{
if ($sheetExport instanceof WithCharts) {
$this->addCharts($sheetExport->charts());
}

if ($sheetExport instanceof WithDrawings) {
$this->addDrawings($sheetExport->drawings());
}
Expand Down

0 comments on commit b4d8b87

Please sign in to comment.