@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | |
63 | 63 | private function shouldRenderChiefException(Throwable $exception): bool |
64 | 64 | { |
65 | - return Str::startsWith(request()->path(), 'admin/') && ! $exception instanceof AuthenticationException && ! $exception instanceof ValidationException; |
|
65 | + return Str::startsWith(request()->path(), 'admin/') && !$exception instanceof AuthenticationException && !$exception instanceof ValidationException; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | protected function renderChiefException(Request $request, Throwable $exception) |
69 | 69 | { |
70 | - if (! config('app.debug')) { |
|
70 | + if (!config('app.debug')) { |
|
71 | 71 | if ($request->expectsJson()) { |
72 | 72 | return response()->json(['error' => 'Something went wrong.'], 404); |
73 | 73 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ], 401); |
100 | 100 | } |
101 | 101 | |
102 | - if (! empty($exception->guards()) && Arr::first($exception->guards()) == 'chief') { |
|
102 | + if (!empty($exception->guards()) && Arr::first($exception->guards()) == 'chief') { |
|
103 | 103 | return redirect()->guest(route('chief.back.login')); |
104 | 104 | } |
105 | 105 |