fix tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user