remove spaces

This commit is contained in:
2026-03-28 15:47:25 +01:00
parent 4a0087104c
commit a99a610688
7 changed files with 40 additions and 40 deletions
+4 -4
View File
@@ -155,12 +155,12 @@ class TasksController extends Controller
$event = Event::findOrFail($task->events_id);
Notification::send($task->users, new TaskDateUpdated(
task: $task,
event: $event,
task: $task,
event: $event,
oldStart: FormatDate::formatDate($task->start),
oldEnd: FormatDate::formatDate($task->end),
oldEnd: FormatDate::formatDate($task->end),
newStart: FormatDate::formatDate($request['start']),
newEnd: FormatDate::formatDate($request['end']),
newEnd: FormatDate::formatDate($request['end']),
));
}
+11 -11
View File
@@ -43,13 +43,13 @@ class TaskDateUpdated extends Notification implements ShouldBroadcast
public function toDatabase($notifiable): array
{
return [
'message' => "La date de la tâche {$this->task->name} de l'événement {$this->event->name} a été mise à jour. Cette tâche aura maintenant lieu du {$this->newStart} au {$this->newEnd}.",
'task_id' => $this->task->id,
'message' => "La date de la tâche {$this->task->name} de l'événement {$this->event->name} a été mise à jour. Cette tâche aura maintenant lieu du {$this->newStart} au {$this->newEnd}.",
'task_id' => $this->task->id,
'event_id' => $this->event->id,
'old_start' => $this->oldStart,
'old_end' => $this->oldEnd,
'old_end' => $this->oldEnd,
'new_start' => $this->newStart,
'new_end' => $this->newEnd,
'new_end' => $this->newEnd,
];
}
@@ -61,13 +61,13 @@ class TaskDateUpdated extends Notification implements ShouldBroadcast
public function toMail($notifiable): void
{
Mail::to($notifiable->email)->send(new TaskDateUpdateMail([
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'oldStart' => $this->oldStart,
'oldEnd' => $this->oldEnd,
'newStart' => $this->newStart,
'newEnd' => $this->newEnd,
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'oldStart' => $this->oldStart,
'oldEnd' => $this->oldEnd,
'newStart' => $this->newStart,
'newEnd' => $this->newEnd,
'eventName' => $this->event->name,
]));
}
+7 -7
View File
@@ -39,8 +39,8 @@ class TaskDeleted extends Notification implements ShouldBroadcast
public function toDatabase($notifiable): array
{
return [
'message' => "La tâche {$this->task->name} pour l'événement {$this->event->name} a été supprimée. Vous n'y participez donc plus.",
'task_id' => $this->task->id,
'message' => "La tâche {$this->task->name} pour l'événement {$this->event->name} a été supprimée. Vous n'y participez donc plus.",
'task_id' => $this->task->id,
'event_id' => $this->event->id,
];
}
@@ -53,11 +53,11 @@ class TaskDeleted extends Notification implements ShouldBroadcast
public function toMail($notifiable): void
{
Mail::to($notifiable->email)->send(new TaskParticipationCancelledMail([
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'start' => $this->event->start,
'end' => $this->task->end,
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'start' => $this->event->start,
'end' => $this->task->end,
'eventName' => $this->event->name,
]));
}
+2 -2
View File
@@ -49,9 +49,9 @@ class UserRegistered extends Notification implements ShouldBroadcast
public function toMail($notifiable): MailMessage
{
Mail::to($notifiable->email)->send(new RegisterMail([
'adminName' => $notifiable->name,
'adminName' => $notifiable->name,
'adminLastname'=> $notifiable->lastname,
'userName' => $this->user->name,
'userName' => $this->user->name,
'userLastname' => $this->user->lastname,
]));
@@ -39,8 +39,8 @@ class VolunteerAssignedToTask extends Notification implements ShouldBroadcast
public function toDatabase($notifiable): array
{
return [
'message' => "Vous avez été assigné à la tâche {$this->task->name} de l'événement {$this->event->name}.",
'task_id' => $this->task->id,
'message' => "Vous avez été assigné à la tâche {$this->task->name} de l'événement {$this->event->name}.",
'task_id' => $this->task->id,
'event_id' => $this->event->id,
];
}
@@ -53,11 +53,11 @@ class VolunteerAssignedToTask extends Notification implements ShouldBroadcast
public function toMail($notifiable): void
{
Mail::to($notifiable->email)->send(new VolunteerAssignToTaskMail([
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'start' => $this->task->start,
'end' => $this->task->end,
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'start' => $this->task->start,
'end' => $this->task->end,
'eventName' => $this->event->name,
]));
}
+2 -2
View File
@@ -47,9 +47,9 @@ class VolunteerRoleUpdated extends Notification implements ShouldBroadcast
public function toMail($notifiable): void
{
Mail::to($notifiable->email)->send(new UpdateRoleMail([
'name' => $notifiable->name,
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'role' => $this->role,
'role' => $this->role,
]));
}
}
@@ -40,8 +40,8 @@ class VolunteerUnassignedFromTask extends Notification implements ShouldBroadcas
public function toDatabase($notifiable): array
{
return [
'message' => "Vous avez été désassigné de la tâche {$this->task->name} de l'événement {$this->event->name}.",
'task_id' => $this->task->id,
'message' => "Vous avez été désassigné de la tâche {$this->task->name} de l'événement {$this->event->name}.",
'task_id' => $this->task->id,
'event_id' => $this->event->id,
];
}
@@ -54,11 +54,11 @@ class VolunteerUnassignedFromTask extends Notification implements ShouldBroadcas
public function toMail($notifiable): void
{
Mail::to($notifiable->email)->send(new VolunteerUnassignToTaskMail([
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'start' => $this->task->start,
'end' => $this->task->end,
'name' => $notifiable->name,
'lastname' => $notifiable->lastname,
'taskName' => $this->task->name,
'start' => $this->task->start,
'end' => $this->task->end,
'eventName' => $this->event->name,
]));
}