|
@@ -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.