Passed
Push — develop ( 77087a...7447be )
by Francisco
03:37
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/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/Auth/RegisterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     protected function create(array $data)
70 70
     {
71
-        $user = DB::transaction(function () use ($data) {
71
+        $user = DB::transaction(function() use ($data) {
72 72
             $user = User::make([
73 73
                 'name' => $data['name'],
74 74
                 'email' => $data['student_number'].'@alunos.uminho.pt',
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
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
      */
66 66
     public function setExchangeEnrollments(Enrollment $from, Enrollment $to) : Exchange
67 67
     {
68
-        if (! $from->availableForExchange() || is_null($to->shift)) {
68
+        if ( ! $from->availableForExchange() || is_null($to->shift)) {
69 69
             throw new EnrollmentCannotBeExchangedException();
70 70
         }
71 71
 
72
-        if (! $from->course->is($to->course)) {
72
+        if ( ! $from->course->is($to->course)) {
73 73
             throw new ExchangeEnrollmentsOnDifferentCoursesException();
74 74
         }
75 75
 
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::user()->isStudent()) {
22
+        if ( ! Auth::user()->isStudent()) {
23 23
             abort(404);
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::user()->isAdmin()) {
22
+        if ( ! Auth::user()->isAdmin()) {
23 23
             abort(404);
24 24
         }
25 25
 
Please login to merge, or discard this patch.
app/Http/Middleware/AuthorizeEnrollmentActions.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')->withinEnrollmentPeriod()) {
19
+        if ( ! app('settings')->withinEnrollmentPeriod()) {
20 20
             flash('The enrollments period is closed. You are not allowed to perform this action.')->error();
21 21
 
22 22
             return redirect()->route('dashboard');
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('dashboard');
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function boot()
18 18
     {
19
-        Auth::macro('student', function () {
19
+        Auth::macro('student', function() {
20 20
             return Auth::check() ? Auth::user()->student : null;
21 21
         });
22 22
 
23
-        Validator::extend('student_number', function ($attribute, $value, $parameters, $validator) {
23
+        Validator::extend('student_number', function($attribute, $value, $parameters, $validator) {
24 24
             return preg_match('/^(a|pg)[0-9]+$/', $value) === 1;
25 25
         });
26 26
     }
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->singleton(ExchangeRegistry::class, function ($app) {
33
+        $this->app->singleton(ExchangeRegistry::class, function($app) {
34 34
             return new EloquentExchangeRegistry();
35 35
         });
36 36
 
37
-        $this->app->singleton('settings', function ($app) {
37
+        $this->app->singleton('settings', function($app) {
38 38
             return Settings::firstOrNew([]);
39 39
         });
40 40
     }
Please login to merge, or discard this patch.