From a7f06b5dc7f77615b99c81fcdd9801aaf8d87d6c Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 4 Jan 2017 20:13:03 +0000 Subject: [PATCH] Don't use status --- .../IncidentUpdate/IncidentUpdatedNotification.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php index 60c2afde..ed2ba951 100644 --- a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php +++ b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php @@ -74,15 +74,8 @@ class IncidentUpdatedNotification extends Notification 'time' => $this->update->created_at_diff, ]); - if ($this->update->status === Incident::FIXED) { - $status = 'success'; - } else { - $status = 'error'; - } - return (new MailMessage()) ->subject(trans('notifications.incident.update.subject')) - ->$status() ->greeting(trans('notifications.incident.update.title', [ 'name' => $this->update->incident->name, 'new_status' => $this->update->human_status,