fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -3,6 +3,7 @@
namespace App\Services\Settings\SchoolCalendar;
use App\Models\CalendarEvent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
class SchoolCalendarQueryService
@@ -35,7 +36,7 @@ class SchoolCalendarQueryService
public function filterEventsForAudience(Collection $events, ?string $audience): Collection
{
$audience = $audience !== null ? strtolower(trim($audience)) : null;
if (! in_array($audience, ['parent', 'teacher', 'admin'], true)) {
if (!in_array($audience, ['parent', 'teacher', 'admin'], true)) {
return $events;
}
@@ -50,7 +51,7 @@ class SchoolCalendarQueryService
return true;
}
if (! $hasAny) {
if (!$hasAny) {
return true;
}