From d77d5935c0e7b32beaa3c75a79d7b14d7de65764 Mon Sep 17 00:00:00 2001 From: Jiannei Date: Sun, 21 Mar 2021 13:33:12 +0000 Subject: [PATCH] Apply fixes from StyleCI --- config/response.php | 2 +- src/Support/Traits/ExceptionTrait.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/response.php b/config/response.php index 89f553b..e4eeedc 100644 --- a/config/response.php +++ b/config/response.php @@ -60,5 +60,5 @@ // https://github.com/Jiannei/laravel-enum // https://github.com/BenSampo/laravel-enum - 'enum' => '',// \Jiannei\Enum\Laravel\Repositories\Enums\HttpStatusCodeEnum::class + 'enum' => '', // \Jiannei\Enum\Laravel\Repositories\Enums\HttpStatusCodeEnum::class ]; diff --git a/src/Support/Traits/ExceptionTrait.php b/src/Support/Traits/ExceptionTrait.php index 4aa8f40..b9f5d41 100644 --- a/src/Support/Traits/ExceptionTrait.php +++ b/src/Support/Traits/ExceptionTrait.php @@ -63,8 +63,7 @@ protected function buildFailedValidationResponse(Request $request, array $errors $firstMessage = Arr::first($errors, null, ''); return app(Response::class)->fail( - is_array($firstMessage) ? Arr::first($firstMessage) : $firstMessage - , Config::get('response.validation_error_code', 422), + is_array($firstMessage) ? Arr::first($firstMessage) : $firstMessage, Config::get('response.validation_error_code', 422), $errors ); }