Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 18, 2023
1 parent 35d1ffe commit 4cbebb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Support/Traits/ExceptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ protected function prepareJsonResponse($request, $e)
// 或者是 ajax 请求,header 中包含 X-Requested-With:XMLHttpRequest;
$exceptionConfig = Config::get('response.exception.'.get_class($e));

if ($exceptionConfig === false) return parent::prepareJsonResponse($request, $e);
if ($exceptionConfig === false) {
return parent::prepareJsonResponse($request, $e);
}

/** @var \Illuminate\Foundation\Exceptions\Handler $this */
$isHttpException = $this->isHttpException($e);
Expand Down

0 comments on commit 4cbebb4

Please sign in to comment.