Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
+6 -6
View File
@@ -16,19 +16,19 @@ class EventListService
$activeOnly = $filters['active'] ?? null;
$allowedSorts = ['created_at', 'expiration_date', 'event_name'];
if (!in_array($sortBy, $allowedSorts, true)) {
if (! in_array($sortBy, $allowedSorts, true)) {
$sortBy = 'created_at';
}
$query = Event::query();
if (!empty($filters['school_year'])) {
if (! empty($filters['school_year'])) {
$query->where('school_year', (string) $filters['school_year']);
}
if (!empty($filters['semester'])) {
if (! empty($filters['semester'])) {
$query->where('semester', (string) $filters['semester']);
}
if (!empty($filters['q'])) {
if (! empty($filters['q'])) {
$term = trim((string) $filters['q']);
$query->where('event_name', 'like', "%{$term}%");
}
@@ -67,10 +67,10 @@ class EventListService
private function activeCount(array $filters): int
{
$query = Event::query()->whereDate('expiration_date', '>=', now()->toDateString());
if (!empty($filters['school_year'])) {
if (! empty($filters['school_year'])) {
$query->where('school_year', (string) $filters['school_year']);
}
if (!empty($filters['semester'])) {
if (! empty($filters['semester'])) {
$query->where('semester', (string) $filters['semester']);
}