@@ -14,7 +14,7 @@ |
||
| 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 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | public function boot() |
| 19 | 19 | { |
| 20 | - Validator::extend('student_number', function ($attribute, $value, $parameters, $validator) { |
|
| 20 | + Validator::extend('student_number', function($attribute, $value, $parameters, $validator) { |
|
| 21 | 21 | return preg_match('/^(a|pg)[0-9]+$/', $value) === 1; |
| 22 | 22 | }); |
| 23 | 23 | } |
@@ -29,11 +29,11 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function register() |
| 31 | 31 | { |
| 32 | - $this->app->singleton(ExchangeLogger::class, function ($app) { |
|
| 32 | + $this->app->singleton(ExchangeLogger::class, function($app) { |
|
| 33 | 33 | return new EloquentExchangeLogger; |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $this->app->singleton('settings', function ($app) { |
|
| 36 | + $this->app->singleton('settings', function($app) { |
|
| 37 | 37 | return Settings::firstOrNew([]); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -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 | } |