Apply fixes from StyleCI

This commit is contained in:
James Brooks
2020-02-27 09:44:35 +00:00
committed by StyleCI Bot
parent 4435526b0e
commit 5ff2289eeb
22 changed files with 89 additions and 88 deletions

View File

@@ -88,7 +88,7 @@ class IncidentUpdatedNotification extends Notification
'unsubscribeUrl' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code),
'manageSubscriptionText' => trans('cachet.subscriber.manage_subscription'),
'manageSubscriptionUrl' => cachet_route('subscribe.manage', $notifiable->verify_code),
]);
]);
}
/**
@@ -136,14 +136,14 @@ class IncidentUpdatedNotification extends Notification
->content($content)
->attachment(function ($attachment) use ($content, $notifiable) {
$attachment->title(trans('notifications.incident.update.slack.title', [
'name' => $this->update->incident->name,
'new_status' => $this->update->human_status,
]))
'name' => $this->update->incident->name,
'new_status' => $this->update->human_status,
]))
->timestamp($this->update->getWrappedObject()->created_at)
->fields(array_filter([
'ID' => "#{$this->update->id}",
'Link' => $this->update->permalink,
]))
'ID' => "#{$this->update->id}",
'Link' => $this->update->permalink,
]))
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
});
}