Test Setup Failed
Push — main ( d5eab1...e64e5a )
by Ben
06:52
created
app/Exceptions/ChiefExceptionHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.