Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
DariusIII
2017-08-31 09:31:28 +00:00
committed by StyleCI Bot
parent e0c7616465
commit 24fa162413
430 changed files with 48472 additions and 48691 deletions
+16 -16
View File
@@ -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);
}
/**