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