Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed May 2, 2024
1 parent a335ea3 commit ff7f090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getEvent(): JobFailed

public function toMail($notifiable): MailMessage
{
return (new MailMessage)
return (new MailMessage())
->error()
->subject('A job failed at '.config('app.url'))
->line("Exception message: {$this->event->exception->getMessage()}")
Expand All @@ -43,7 +43,7 @@ public function toMail($notifiable): MailMessage

public function toSlack(): SlackMessage
{
return (new SlackMessage)
return (new SlackMessage())
->error()
->content('A job failed at '.config('app.url'))
->attachment(function (SlackAttachment $attachment) {
Expand Down

0 comments on commit ff7f090

Please sign in to comment.