add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 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;
}