Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Mar 21, 2021
1 parent d8300eb commit d77d593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
3 changes: 1 addition & 2 deletions src/Support/Traits/ExceptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit d77d593

Please sign in to comment.