@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function register() |
| 25 | 25 | { |
| 26 | - $this->app->singleton('flash', function () { |
|
| 26 | + $this->app->singleton('flash', function() { |
|
| 27 | 27 | return $this->app->make(\App\Session\FlashMessage::class); |
| 28 | 28 | }); |
| 29 | 29 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | Schema::defaultStringLength(191); |
| 22 | 22 | |
| 23 | - Route::bind('link_hash', function ($hash = '') { |
|
| 23 | + Route::bind('link_hash', function($hash = '') { |
|
| 24 | 24 | return Link::where('hash', $hash)->first(); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function boot() |
| 26 | 26 | { |
| 27 | 27 | // |
| 28 | - Route::bind('linkHash', function ($hash) { |
|
| 28 | + Route::bind('linkHash', function($hash) { |
|
| 29 | 29 | return Link::where('hash', $hash)->firstOrFail(); |
| 30 | 30 | }); |
| 31 | 31 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | // Allow access only to administrators |
| 38 | - if (! $this->auth->user()->hasRole('Administrator')) { |
|
| 38 | + if ( ! $this->auth->user()->hasRole('Administrator')) { |
|
| 39 | 39 | abort(404, 'You are not authorized to view requested resource.'); |
| 40 | 40 | |
| 41 | 41 | return redirect()->route('homepage'); |