@@ -45,7 +45,6 @@ |
||
| 45 | 45 | * Render an exception into an HTTP response. |
| 46 | 46 | * |
| 47 | 47 | * @param \Illuminate\Http\Request $request |
| 48 | - * @param \Exception $exception |
|
| 49 | 48 | * |
| 50 | 49 | * @return \Illuminate\Http\Response |
| 51 | 50 | */ |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | * Log the user out of the application. |
| 108 | 108 | * |
| 109 | 109 | * @param \Illuminate\Http\Request $request |
| 110 | - * @return \Illuminate\Http\Response |
|
| 110 | + * @return \Illuminate\Http\RedirectResponse |
|
| 111 | 111 | */ |
| 112 | 112 | public function logout(Request $request) |
| 113 | 113 | { |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * Handle a registration request for the application. |
| 90 | 90 | * |
| 91 | 91 | * @param \Illuminate\Http\Request $request |
| 92 | - * @return \Illuminate\Http\Response |
|
| 92 | + * @return \Illuminate\Http\RedirectResponse |
|
| 93 | 93 | */ |
| 94 | 94 | public function register(Request $request) |
| 95 | 95 | { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * |
| 40 | 40 | * @param \App\Http\Requests\SubmitUrlRequest $request |
| 41 | 41 | * |
| 42 | - * @return \Illuminate\Http\Response |
|
| 42 | + * @return \Illuminate\Http\RedirectResponse |
|
| 43 | 43 | */ |
| 44 | 44 | public function store(SubmitUrlRequest $request, Link $link) |
| 45 | 45 | { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * Get the notification's delivery channels. |
| 28 | 28 | * |
| 29 | 29 | * @param mixed $notifiable |
| 30 | - * @return array |
|
| 30 | + * @return string[] |
|
| 31 | 31 | */ |
| 32 | 32 | public function via($notifiable) |
| 33 | 33 | { |
@@ -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'); |