Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlrbt authored and github-actions[bot] committed Jun 20, 2022
1 parent b29f133 commit fbcaf6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Exports/Concerns/WithColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public function fromModel(): static
$mapping = $this->createFieldMappingFromForm();

return collect($this->getModelClass()::first()->getAttributes())
->map(fn ($attribute, $key) => $mapping->has($key)
->map(
fn ($attribute, $key) => $mapping->has($key)
? Column::make($key)->heading($mapping->get($key)->getHeading())
: Column::make($key)
)
Expand Down

0 comments on commit fbcaf6d

Please sign in to comment.