@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | URL::forceScheme('https'); |
21 | 21 | } |
22 | 22 | |
23 | - Auth::macro('student', function () { |
|
23 | + Auth::macro('student', function() { |
|
24 | 24 | return Auth::check() ? Auth::user()->student : null; |
25 | 25 | }); |
26 | 26 | |
27 | - Validator::extend('student_number', function ($attribute, $value, $parameters, $validator) { |
|
27 | + Validator::extend('student_number', function($attribute, $value, $parameters, $validator) { |
|
28 | 28 | return preg_match('/^(a|pg)[0-9]+$/i', $value) === 1; |
29 | 29 | }); |
30 | 30 | } |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
37 | - $this->app->singleton(ExchangeRegistry::class, function ($app) { |
|
37 | + $this->app->singleton(ExchangeRegistry::class, function($app) { |
|
38 | 38 | return new EloquentExchangeRegistry(); |
39 | 39 | }); |
40 | 40 | |
41 | - $this->app->singleton('settings', function ($app) { |
|
41 | + $this->app->singleton('settings', function($app) { |
|
42 | 42 | return Settings::firstOrNew([]); |
43 | 43 | }); |
44 | 44 | } |