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