From b7d684ef82276d8470e03cb8c538887d5f54e898 Mon Sep 17 00:00:00 2001 From: Jordan Hoff Date: Wed, 3 Aug 2016 10:10:35 -0500 Subject: [PATCH] Compliance with commonly used phpmd rules --- app/Exceptions/Handler.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 546d5082..7c47a05c 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -26,39 +26,39 @@ class Handler extends ExceptionHandler * * This is a great spot to send exceptions to Sentry, Bugsnag, etc. * - * @param \Exception $e + * @param \Exception $exception * @return void */ - public function report(Exception $e) + public function report(Exception $exception) { - parent::report($e); + parent::report($exception); } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Exception $e + * @param \Exception $exception * @return \Illuminate\Http\Response */ - public function render($request, Exception $e) + public function render($request, Exception $exception) { - return parent::render($request, $e); + return parent::render($request, $exception); } /** * Convert an authentication exception into an unauthenticated response. * * @param \Illuminate\Http\Request $request - * @param \Illuminate\Auth\AuthenticationException $e + * @param \Illuminate\Auth\AuthenticationException $exception * @return \Illuminate\Http\Response */ - protected function unauthenticated($request, AuthenticationException $e) + protected function unauthenticated($request, AuthenticationException $exception) { if ($request->expectsJson()) { return response()->json(['error' => 'Unauthenticated.'], 401); - } else { - return redirect()->guest('login'); } + + return redirect()->guest('login'); } }