Passed
Branch master (a9cf56)
by Francisco
07:28
created
app/Imports/EnrollmentsImport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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'],
Please login to merge, or discard this patch.
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.