@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | if (config('app.send_emails_for_results')) { |
25 | 25 | // when a result is added, send a notification |
26 | - static::saved(function (self $result) { |
|
26 | + static::saved(function(self $result) { |
|
27 | 27 | Mail::to($result->enrollment->student->user->email)->locale($result->enrollment->student->user->locale)->queue(new ResultNotification($result->enrollment->course, $result->enrollment->student->user)); |
28 | 28 | }); |
29 | 29 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | parent::boot(); |
22 | 22 | |
23 | 23 | // when an attendance record is added, we check if this is an absence |
24 | - static::saved(function (self $attendance) { |
|
24 | + static::saved(function(self $attendance) { |
|
25 | 25 | if (config('app.send_emails_for_absences') && $attendance->attendance_type_id == 4) { // todo move to configurable settings |
26 | 26 | // Log::info('Absence marked for student '.$attendance->student->name); |
27 | 27 | // will check the record again and send a notification if it hasn't changed |