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
@@ -23,7 +23,7 @@ class SchoolCalendarMeetingService
if ($audience === 'parent' && $parentUserId) {
$studentIds = $this->getStudentIdsForParent($parentUserId);
if (!empty($studentIds)) {
if (! empty($studentIds)) {
$builder->where(function (Builder $q) use ($parentUserId, $studentIds) {
$q->where('parent_user_id', $parentUserId)
->orWhereIn('student_id', $studentIds);
@@ -34,7 +34,7 @@ class SchoolCalendarMeetingService
}
$rows = $builder->orderBy('date', 'ASC')->get()->toArray();
if (!empty($rows)) {
if (! empty($rows)) {
return $rows;
}
@@ -48,7 +48,7 @@ class SchoolCalendarMeetingService
if ($audience === 'parent' && $parentUserId) {
$studentIds = $this->getStudentIdsForParent($parentUserId);
if (!empty($studentIds)) {
if (! empty($studentIds)) {
$fallback->where(function (Builder $q) use ($parentUserId, $studentIds) {
$q->where('parent_user_id', $parentUserId)
->orWhereIn('student_id', $studentIds);