Skip to content

Commit 5a51774

Browse files
cs
1 parent 06d8aaa commit 5a51774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exception/Handler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protected function genericResponse(Throwable $exception)
183183

184184
$response = $this->newResponseArray();
185185

186-
array_walk_recursive($response, function (&$value, $key) use ($exception, $replacements) {
186+
array_walk_recursive($response, function (&$value, $key) use ($replacements) {
187187
if (Str::startsWith($value, ':') && isset($replacements[$value])) {
188188
$value = $replacements[$value];
189189
}
@@ -207,7 +207,7 @@ protected function getStatusCode(Throwable $exception)
207207

208208
if ($exception instanceof ValidationException) {
209209
$statusCode = $exception->status;
210-
} else if ($exception instanceof HttpExceptionInterface) {
210+
} elseif ($exception instanceof HttpExceptionInterface) {
211211
$statusCode = $exception->getStatusCode();
212212
} else {
213213
// By default throw 500

0 commit comments

Comments
 (0)