@@ -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 | |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | throw new StudentIsNotEnrolledInCourseException($course); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - if (! $enrollment->isDeletable()) { |
|
| 143 | + if ( ! $enrollment->isDeletable()) { |
|
| 144 | 144 | throw new EnrollmentCannotBeDeleted($enrollment); |
| 145 | 145 | } |
| 146 | 146 | |