@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | */ |
201 | 201 | public function skills() |
202 | 202 | { |
203 | - return $this->evaluationType?->skills()->orderBy('order'); |
|
203 | + return $this->evaluationType ? ->skills()->orderBy('order'); |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | public function books() |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | */ |
226 | 226 | public function getPendingAttendanceAttribute() |
227 | 227 | { |
228 | - $events = Event::where(function ($query) { |
|
228 | + $events = Event::where(function($query) { |
|
229 | 229 | $query->where('course_id', $this->id); |
230 | 230 | $query->where('exempt_attendance', '!=', true); |
231 | 231 | $query->where('exempt_attendance', '!=', 1); |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | foreach ($courseTimes as $courseTime) { |
359 | 359 | $initial = $daysInitials[$courseTime->day]; |
360 | 360 | |
361 | - if (! isset($parsedCourseTimes[$initial])) { |
|
361 | + if (!isset($parsedCourseTimes[$initial])) { |
|
362 | 362 | $parsedCourseTimes[$initial] = []; |
363 | 363 | } |
364 | 364 | |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | public function getCourseTeacherNameAttribute() |
406 | 406 | { |
407 | 407 | if ($this->teacher_id) { |
408 | - return $this->teacher?->name; |
|
408 | + return $this->teacher ? ->name; |
|
409 | 409 | } else { |
410 | 410 | return '-'; |
411 | 411 | } |
@@ -438,11 +438,11 @@ discard block |
||
438 | 438 | |
439 | 439 | public function getAcceptsNewStudentsAttribute(): bool |
440 | 440 | { |
441 | - if (! $this->spots || $this->spots == 0) { |
|
441 | + if (!$this->spots || $this->spots == 0) { |
|
442 | 442 | return true; |
443 | 443 | } |
444 | 444 | |
445 | - return $this->spots - $this->enrollments()->whereIn('status_id', [1,2])->count() > 0; |
|
445 | + return $this->spots - $this->enrollments()->whereIn('status_id', [1, 2])->count() > 0; |
|
446 | 446 | } |
447 | 447 | |
448 | 448 | public function getTakesAttendanceAttribute(): bool |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | |
462 | 462 | public function eventsWithExpectedAttendance() |
463 | 463 | { |
464 | - return $this->events()->where(function ($query) { |
|
464 | + return $this->events()->where(function($query) { |
|
465 | 465 | $query->where('exempt_attendance', '!=', true); |
466 | 466 | $query->where('exempt_attendance', '!=', 1); |
467 | 467 | $query->orWhereNull('exempt_attendance'); |