Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
@@ -11,8 +11,7 @@ class SchoolCalendarMutationService
public function __construct(
private SchoolCalendarContextService $context,
private SchoolCalendarNotificationService $notificationService
) {
}
) {}
public function create(array $payload, array $targets = []): array
{
@@ -23,7 +22,7 @@ class SchoolCalendarMutationService
return CalendarEvent::query()->create($data);
});
} catch (\Throwable $e) {
Log::error('SchoolCalendar create failed: ' . $e->getMessage());
Log::error('SchoolCalendar create failed: '.$e->getMessage());
throw $e;
}
@@ -45,7 +44,7 @@ class SchoolCalendarMutationService
$event->save();
});
} catch (\Throwable $e) {
Log::error('SchoolCalendar update failed: ' . $e->getMessage());
Log::error('SchoolCalendar update failed: '.$e->getMessage());
throw $e;
}
@@ -65,7 +64,7 @@ class SchoolCalendarMutationService
$event->delete();
});
} catch (\Throwable $e) {
Log::error('SchoolCalendar delete failed: ' . $e->getMessage());
Log::error('SchoolCalendar delete failed: '.$e->getMessage());
throw $e;
}
}
@@ -77,15 +76,15 @@ class SchoolCalendarMutationService
'description' => $payload['description'] ?? null,
'event_type' => $payload['event_type'] ?? null,
'date' => $payload['date'] ?? $payload['start'] ?? null,
'notify_parent' => !empty($payload['notify_parent']) ? 1 : 0,
'notify_teacher' => !empty($payload['notify_teacher']) ? 1 : 0,
'notify_admin' => !empty($payload['notify_admin']) ? 1 : 0,
'no_school' => !empty($payload['no_school']) ? 1 : 0,
'notify_parent' => ! empty($payload['notify_parent']) ? 1 : 0,
'notify_teacher' => ! empty($payload['notify_teacher']) ? 1 : 0,
'notify_admin' => ! empty($payload['notify_admin']) ? 1 : 0,
'no_school' => ! empty($payload['no_school']) ? 1 : 0,
'school_year' => $payload['school_year'] ?? $this->context->defaultSchoolYear(),
'semester' => $payload['semester'] ?? $this->context->defaultSemester(),
];
if (!CalendarEvent::supportsEventType()) {
if (! CalendarEvent::supportsEventType()) {
unset($data['event_type']);
}