Passed
Pull Request — develop (#1)
by
unknown
02:46
created
app/Http/Controllers/Admin/StudentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function show($id, ExchangeRegistry $exchangeLogger)
20 20
     {
21
-        $data = DB::transaction(function () use ($id, $exchangeLogger) {
21
+        $data = DB::transaction(function() use ($id, $exchangeLogger) {
22 22
             $data = [];
23 23
             $student = Student::findOrFail($id);
24 24
             $data['student'] = $student;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         // Group all enrollments by the year of their associated course, so
38 38
         // the enrollments listing is organized by year. This will allow
39 39
         // a better experience, since it matches the official order.
40
-        $data['enrollments'] = $data['enrollments']->groupBy(function ($enrollment) {
40
+        $data['enrollments'] = $data['enrollments']->groupBy(function($enrollment) {
41 41
             return $enrollment->course->present()->getOrdinalYear();
42 42
         });
43 43
 
Please login to merge, or discard this patch.
app/Judite/Models/Exchange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@
 block discarded – undo
72 72
      */
73 73
     public function setExchangeEnrollments(Enrollment $from, Enrollment $to) : self
74 74
     {
75
-        if (! $from->availableForExchange() || is_null($to->shift)) {
75
+        if ( ! $from->availableForExchange() || is_null($to->shift)) {
76 76
             throw new EnrollmentCannotBeExchangedException();
77 77
         }
78 78
 
79
-        if (! $from->course->is($to->course)) {
79
+        if ( ! $from->course->is($to->course)) {
80 80
             throw new ExchangeEnrollmentsOnDifferentCoursesException();
81 81
         }
82 82
 
Please login to merge, or discard this patch.