Skip to content

Commit

Permalink
feat: translator in phpspreadsheet exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Jun 16, 2023
1 parent f11bac3 commit 0e5fbb0
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,7 @@ protected function createSpreadsheet(DataTableView $view, array $options = []):

$this->appendRow(
$worksheet,
array_map(function (ColumnValueView $view) {
$value = $view->vars['export']['value'];

if (is_bool($value)) {
$value = (int) $value;
}

return $value;
}, $values),
array_map(fn (ColumnValueView $view) => $view->vars['export']['value'], $values),
);
}

Expand Down

0 comments on commit 0e5fbb0

Please sign in to comment.