@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -16,7 +16,7 @@ |
||
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() |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | protected function checkStudent() |
31 | 31 | { |
32 | - if (! auth()->check() || ! auth()->user()->isStudent()) { |
|
32 | + if ( ! auth()->check() || ! auth()->user()->isStudent()) { |
|
33 | 33 | throw new AuthorizationException('Unauthorized.'); |
34 | 34 | } |
35 | 35 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | protected function checkAdmin() |
31 | 31 | { |
32 | - if (! auth()->check() || ! auth()->user()->isAdmin()) { |
|
32 | + if ( ! auth()->check() || ! auth()->user()->isAdmin()) { |
|
33 | 33 | throw new AuthorizationException('Unauthorized.'); |
34 | 34 | } |
35 | 35 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function boot() |
17 | 17 | { |
18 | - Validator::extend('student_number', function ($attribute, $value, $parameters, $validator) { |
|
18 | + Validator::extend('student_number', function($attribute, $value, $parameters, $validator) { |
|
19 | 19 | return preg_match('/^(a|pg)[0-9]+$/', $value) === 1; |
20 | 20 | }); |
21 | 21 | } |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function register() |
27 | 27 | { |
28 | - $this->app->singleton(ExchangeLogger::class, function ($app) { |
|
28 | + $this->app->singleton(ExchangeLogger::class, function($app) { |
|
29 | 29 | return new EloquentExchangeLogger(); |
30 | 30 | }); |
31 | 31 | |
32 | - $this->app->singleton('settings', function ($app) { |
|
32 | + $this->app->singleton('settings', function($app) { |
|
33 | 33 | return Settings::firstOrNew([]); |
34 | 34 | }); |
35 | 35 | } |