From c5c2355d8a349a2bcec700493c20d5276912c594 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 1 Aug 2020 07:58:34 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Notifications/Incident/NewIncidentNotification.php | 2 +- .../IncidentUpdate/IncidentUpdatedNotification.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Notifications/Incident/NewIncidentNotification.php b/app/Notifications/Incident/NewIncidentNotification.php index d1ddc601..ac56c9de 100644 --- a/app/Notifications/Incident/NewIncidentNotification.php +++ b/app/Notifications/Incident/NewIncidentNotification.php @@ -127,7 +127,7 @@ class NewIncidentNotification extends Notification return (new SlackMessage()) ->$status() ->content($content) - ->attachment(function ($attachment) use ($notifiable) { + ->attachment(function ($attachment) { $attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name])) ->timestamp($this->incident->getWrappedObject()->occurred_at) ->fields(array_filter([ diff --git a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php index c9b5a000..6c88b403 100644 --- a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php +++ b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php @@ -134,7 +134,7 @@ class IncidentUpdatedNotification extends Notification return (new SlackMessage()) ->$status() ->content($content) - ->attachment(function ($attachment) use ($content, $notifiable) { + ->attachment(function ($attachment) use ($notifiable) { $attachment->title(trans('notifications.incident.update.slack.title', [ 'name' => $this->update->incident->name, 'new_status' => $this->update->human_status,