Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
4435526b0e
commit
5ff2289eeb
@@ -92,7 +92,7 @@ class ComponentStatusChangedNotification extends Notification
|
||||
'unsubscribeUrl' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code),
|
||||
'manageSubscriptionText' => trans('cachet.subscriber.manage_subscription'),
|
||||
'manageSubscriptionUrl' => cachet_route('subscribe.manage', $notifiable->verify_code),
|
||||
]);
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -144,11 +144,11 @@ class ComponentStatusChangedNotification extends Notification
|
||||
->attachment(function ($attachment) use ($content, $notifiable) {
|
||||
$attachment->title($content, cachet_route('status-page'))
|
||||
->fields(array_filter([
|
||||
'Component' => $this->component->name,
|
||||
'Old Status' => $this->component->human_status,
|
||||
'New Status' => trans("cachet.components.status.{$this->status}"),
|
||||
'Link' => $this->component->link,
|
||||
]))
|
||||
'Component' => $this->component->name,
|
||||
'Old Status' => $this->component->human_status,
|
||||
'New Status' => trans("cachet.components.status.{$this->status}"),
|
||||
'Link' => $this->component->link,
|
||||
]))
|
||||
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -131,9 +131,9 @@ class NewIncidentNotification extends Notification
|
||||
$attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name]))
|
||||
->timestamp($this->incident->getWrappedObject()->occurred_at)
|
||||
->fields(array_filter([
|
||||
'ID' => "#{$this->incident->id}",
|
||||
'Link' => $this->incident->permalink,
|
||||
]));
|
||||
'ID' => "#{$this->incident->id}",
|
||||
'Link' => $this->incident->permalink,
|
||||
]));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)]));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class NewScheduleNotification extends Notification implements ShouldQueue
|
||||
'unsubscribeUrl' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code),
|
||||
'manageSubscriptionText' => trans('cachet.subscriber.manage_subscription'),
|
||||
'manageSubscriptionUrl' => cachet_route('subscribe.manage', $notifiable->verify_code),
|
||||
]);
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -122,9 +122,9 @@ class NewScheduleNotification extends Notification implements ShouldQueue
|
||||
$attachment->title($content)
|
||||
->timestamp($this->schedule->getWrappedObject()->scheduled_at)
|
||||
->fields(array_filter([
|
||||
'ID' => "#{$this->schedule->id}",
|
||||
'Status' => $this->schedule->human_status,
|
||||
]));
|
||||
'ID' => "#{$this->schedule->id}",
|
||||
'Status' => $this->schedule->human_status,
|
||||
]));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user