Passed
Push — develop ( a8f030...cce3fe )
by Francisco
02:56
created
app/Http/Controllers/CourseController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
      */
15 15
     public function index()
16 16
     {
17
-        $courses = DB::transaction(function () {
17
+        $courses = DB::transaction(function() {
18 18
             return Course::orderedList()->get();
19 19
         });
20 20
 
21
-        $courses = $courses->groupBy(function ($course) {
21
+        $courses = $courses->groupBy(function($course) {
22 22
             return $course->present()->getOrdinalYear();
23 23
         });
24 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
      */
38 38
     protected function adminDashboard()
39 39
     {
40
-        $courses = DB::transaction(function () {
40
+        $courses = DB::transaction(function() {
41 41
             return Course::withCount('enrollments')
42 42
                 ->orderedList()
43 43
                 ->get();
44 44
         });
45 45
 
46
-        $courses = $courses->groupBy(function ($course) {
46
+        $courses = $courses->groupBy(function($course) {
47 47
             return $course->present()->getOrdinalYear();
48 48
         });
49 49
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function studentDashboard()
59 59
     {
60
-        $data = DB::transaction(function () {
60
+        $data = DB::transaction(function() {
61 61
             $student = Auth::user()->student;
62 62
             $data['enrollments'] = $student
63 63
                 ->enrollments()
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         // Group all enrollments by the year of their associated course, so
74 74
         // the enrollments listing is organized by year. This will allow
75 75
         // a better experience, since it matches the official order.
76
-        $data['enrollments'] = $data['enrollments']->groupBy(function ($enrollment) {
76
+        $data['enrollments'] = $data['enrollments']->groupBy(function($enrollment) {
77 77
             return $enrollment->course->present()->getOrdinalYear();
78 78
         });
79 79
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/SettingsController.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
      */
28 28
     public function update(UpdateRequest $request)
29 29
     {
30
-        DB::transaction(function () use ($request) {
30
+        DB::transaction(function() use ($request) {
31 31
             $settings = Settings::first();
32 32
             $settings->update($request->input());
33 33
         });
Please login to merge, or discard this patch.
app/Providers/ComposerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-        View::composer('*', function ($view) {
17
+        View::composer('*', function($view) {
18 18
             $view->with('settings', app('settings'));
19 19
         });
20 20
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/CourseController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function show($id)
18 18
     {
19
-        $data = DB::transaction(function () use ($id) {
19
+        $data = DB::transaction(function() use ($id) {
20 20
             $data = [];
21 21
             $data['course'] = Course::findOrFail($id);
22 22
             $data['enrollments'] = $data['course']->enrollments()
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfUnconfirmed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function handle($request, Closure $next, $guard = null)
19 19
     {
20
-        if (! auth()->user()->verified) {
20
+        if ( ! auth()->user()->verified) {
21 21
             return response(view('auth.unconfirmed'), 403);
22 22
         }
23 23
 
Please login to merge, or discard this patch.
app/Http/Middleware/AuthorizeStudent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function handle($request, Closure $next)
21 21
     {
22
-        if (! auth()->check() || ! auth()->user()->isStudent()) {
22
+        if ( ! auth()->check() || ! auth()->user()->isStudent()) {
23 23
             throw new AuthorizationException('Unauthorized.');
24 24
         }
25 25
 
Please login to merge, or discard this patch.
app/Http/Middleware/AuthorizeAdministrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function handle($request, Closure $next)
21 21
     {
22
-        if (! auth()->check() || ! auth()->user()->isAdmin()) {
22
+        if ( ! auth()->check() || ! auth()->user()->isAdmin()) {
23 23
             throw new AuthorizationException('Unauthorized.');
24 24
         }
25 25
 
Please login to merge, or discard this patch.
app/Http/Middleware/AuthorizeExchangeActions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function handle($request, Closure $next)
18 18
     {
19
-        if (! app('settings')->withinExchangePeriod()) {
19
+        if ( ! app('settings')->withinExchangePeriod()) {
20 20
             flash('The exchanges period is closed. You are not allowed to perform this action.')->error();
21 21
 
22 22
             return redirect()->route('home');
Please login to merge, or discard this patch.