@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | protected function create(array $data) |
| 66 | 66 | { |
| 67 | - $user = DB::transaction(function () use ($data) { |
|
| 67 | + $user = DB::transaction(function() use ($data) { |
|
| 68 | 68 | $lowerUserEmail = strtolower($data['student_number']); |
| 69 | 69 | $user = User::make([ |
| 70 | 70 | 'name' => $data['name'], |
@@ -16,11 +16,11 @@ discard block |
||
| 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]+$/i', $value) === 1; |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -30,11 +30,11 @@ discard block |
||
| 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 | } |