@@ -27,7 +27,7 @@ |
||
27 | 27 | $student = Student::whereNumber($row['student_id']) |
28 | 28 | ->firstOrNew(['student_number' => strtolower($row['student_id'])]); |
29 | 29 | |
30 | - if (! $student->exists) { |
|
30 | + if ( ! $student->exists) { |
|
31 | 31 | /** @var \App\Judite\Models\User $user */ |
32 | 32 | $user = User::make([ |
33 | 33 | 'name' => $row['student_name'] ?? $row['student_id'], |
@@ -77,7 +77,7 @@ |
||
77 | 77 | return $this->enrollments; |
78 | 78 | } |
79 | 79 | |
80 | - return DB::transaction(fn () => Enrollment::with('course', 'student', 'shift') |
|
80 | + return DB::transaction(fn() => Enrollment::with('course', 'student', 'shift') |
|
81 | 81 | ->get() |
82 | 82 | ->sortByDesc('courses.name') |
83 | 83 | ); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function storeImport(ImportRequest $request) |
46 | 46 | { |
47 | 47 | try { |
48 | - DB::transaction(fn () => Excel::import(new EnrollmentsImport(), $request->enrollments->path())); |
|
48 | + DB::transaction(fn() => Excel::import(new EnrollmentsImport(), $request->enrollments->path())); |
|
49 | 49 | |
50 | 50 | flash('The enrollments file was successfully imported.')->success(); |
51 | 51 | } catch (InvalidImportFileException $e) { |