mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
+16
-16
@@ -46,24 +46,24 @@ class Handler extends ExceptionHandler
|
||||
*/
|
||||
public function render($request, Exception $exception)
|
||||
{
|
||||
// 404 page when a model is not found
|
||||
if ($exception instanceof ModelNotFoundException) {
|
||||
return response()->view('errors.404', [], 404);
|
||||
}
|
||||
// 404 page when a model is not found
|
||||
if ($exception instanceof ModelNotFoundException) {
|
||||
return response()->view('errors.404', [], 404);
|
||||
}
|
||||
|
||||
if ($exception instanceof NotFoundHttpException)
|
||||
{
|
||||
return response()->view('errors.404', [], 404);
|
||||
}
|
||||
if ($exception instanceof NotFoundHttpException) {
|
||||
return response()->view('errors.404', [], 404);
|
||||
}
|
||||
|
||||
if ($this->isHttpException($exception)) {
|
||||
return $this->renderHttpException($exception);
|
||||
}
|
||||
// Custom error 500 view on production
|
||||
if (app()->environment() === 'production') {
|
||||
return response()->view('errors.503', [], 500);
|
||||
}
|
||||
return parent::render($request, $exception);
|
||||
if ($this->isHttpException($exception)) {
|
||||
return $this->renderHttpException($exception);
|
||||
}
|
||||
// Custom error 500 view on production
|
||||
if (app()->environment() === 'production') {
|
||||
return response()->view('errors.503', [], 500);
|
||||
}
|
||||
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user