fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -3,7 +3,6 @@
namespace App\Services\Settings\SchoolCalendar;
use App\Models\CalendarEvent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
class SchoolCalendarQueryService
@@ -36,7 +35,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;
}
@@ -51,7 +50,7 @@ class SchoolCalendarQueryService
return true;
}
if (!$hasAny) {
if (! $hasAny) {
return true;
}