@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public function store($id) |
| 33 | 33 | { |
| 34 | 34 | try { |
| 35 | - $course = DB::transaction(function () use ($id) { |
|
| 35 | + $course = DB::transaction(function() use ($id) { |
|
| 36 | 36 | $course = Course::findOrFail($id); |
| 37 | 37 | Auth::student()->enroll($course); |
| 38 | 38 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | public function destroy($id) |
| 57 | 57 | { |
| 58 | 58 | try { |
| 59 | - $course = DB::transaction(function () use ($id) { |
|
| 59 | + $course = DB::transaction(function() use ($id) { |
|
| 60 | 60 | $course = Course::findOrFail($id); |
| 61 | 61 | Auth::student()->unenroll($course); |
| 62 | 62 | |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | */ |
| 136 | 136 | public function unenroll(Course $course): bool |
| 137 | 137 | { |
| 138 | - if (! $this->isEnrolledInCourse($course)) { |
|
| 138 | + if ( ! $this->isEnrolledInCourse($course)) { |
|
| 139 | 139 | throw new UserIsNotEnrolledInCourseException($course); |
| 140 | 140 | } |
| 141 | 141 | |