Passed
Branch master (a9cf56)
by Francisco
07:28
created
app/Exports/EnrollmentsExport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/EnrollmentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.