Skip to content

Commit 2374ba3

Browse files
Baspagithub-actions[bot]
authored andcommitted
Fix styling
1 parent c812778 commit 2374ba3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Resources/SuppressionResource.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ public static function table(Table $table): Table
105105
->columns([
106106
Tables\Columns\TextColumn::make('to')
107107
->label(__('Email address'))
108-
->formatStateUsing(fn($record) => key(json_decode($record->to ?? [])))
108+
->formatStateUsing(fn ($record) => key(json_decode($record->to ?? [])))
109109
->searchable(['to']),
110110

111111
Tables\Columns\TextColumn::make('id')
112112
->label(__('Reason'))
113113
->badge()
114-
->formatStateUsing(fn($record) => $record->type->value == EventType::COMPLAINED->value ? 'Complained' : 'Bounced')
115-
->color(fn($record): string => match ($record->type->value == EventType::COMPLAINED->value) {
114+
->formatStateUsing(fn ($record) => $record->type->value == EventType::COMPLAINED->value ? 'Complained' : 'Bounced')
115+
->color(fn ($record): string => match ($record->type->value == EventType::COMPLAINED->value) {
116116
true => 'danger',
117117
default => 'gray',
118118
}),
@@ -121,7 +121,7 @@ public static function table(Table $table): Table
121121
->label(__('Occurred At'))
122122
->dateTime('d-m-Y H:i')
123123
->since()
124-
->tooltip(fn(MailEvent $record) => $record->occurred_at->format('d-m-Y H:i'))
124+
->tooltip(fn (MailEvent $record) => $record->occurred_at->format('d-m-Y H:i'))
125125
->sortable()
126126
->searchable(),
127127
])
@@ -131,7 +131,7 @@ public static function table(Table $table): Table
131131
->action(function (MailEvent $record) {
132132
event(new MailUnsuppressed(key($record->mail->to), $record->mail->mailer == 'smtp' && filled($record->mail->transport) ? $record->mail->transport : $record->mail->mailer, $record->mail->stream_id ?? null));
133133
})
134-
->visible(fn($record) => Provider::tryFrom($record->mail->mailer == 'smtp' && filled($record->mail->transport) ? $record->mail->transport : $record->mail->mailer)),
134+
->visible(fn ($record) => Provider::tryFrom($record->mail->mailer == 'smtp' && filled($record->mail->transport) ? $record->mail->transport : $record->mail->mailer)),
135135

136136
Tables\Actions\ViewAction::make()
137137
->url(null)
@@ -140,7 +140,7 @@ public static function table(Table $table): Table
140140
->label(__('View'))
141141
->hiddenLabel()
142142
->tooltip(__('View'))
143-
->infolist(fn(Infolist $infolist) => EventResource::infolist($infolist)),
143+
->infolist(fn (Infolist $infolist) => EventResource::infolist($infolist)),
144144
]);
145145
}
146146

0 commit comments

Comments
 (0)