From 14ae6b24fab5d479f58b5d176b92f7a008851089 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 20 Jun 2022 12:31:52 +0300 Subject: [PATCH] Change $exception to $e for consistency --- application/helpers/http_helper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/helpers/http_helper.php b/application/helpers/http_helper.php index 27602326..3c396e7c 100644 --- a/application/helpers/http_helper.php +++ b/application/helpers/http_helper.php @@ -146,14 +146,14 @@ if ( ! function_exists('json_exception')) * * json_exception($exception); // Add this in a catch block to return the exception information. * - * @param Throwable $exception + * @param Throwable $e */ - function json_exception(Throwable $exception) + function json_exception(Throwable $e) { json_response([ 'success' => FALSE, - 'message' => $exception->getMessage(), - 'trace' => config('debug') ? $exception->getTrace() : [] + 'message' => $e->getMessage(), + 'trace' => config('debug') ? $e->getTrace() : [] ], 500); } }