mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix return type
This commit is contained in:
@@ -168,21 +168,18 @@ class BasePageController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Show 403 page.
|
||||
*
|
||||
*
|
||||
* @param bool $from_admin
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function show403($from_admin = false): void
|
||||
public function show403()
|
||||
{
|
||||
header('Location: '.($from_admin ? str_replace('/admin', '', WWW_TOP) : WWW_TOP).'/login?redirect='.urlencode(\request()->getRequestUri()));
|
||||
exit();
|
||||
return view('errors.403');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Show 503 page.
|
||||
*/
|
||||
public function show503(): void
|
||||
public function show503()
|
||||
{
|
||||
return view('errors.503')->with('Error', 'Service temporarily unavailable');
|
||||
}
|
||||
@@ -214,7 +211,7 @@ class BasePageController extends Controller
|
||||
/**
|
||||
* @param string $retry
|
||||
*/
|
||||
public function show429($retry = ''): void
|
||||
public function show429($retry = '')
|
||||
{
|
||||
abort(429, $retry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user