Passed
Push — master ( ecb5b5...86b698 )
by Reza
16:08
created
src/Http/Middleware/isAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
     {
13 13
         auth()->shouldUse(config('easy_panel.auth_guard'));
14 14
 
15
-        if(auth()->guest()){
15
+        if (auth()->guest()) {
16 16
             return redirect(config('easy_panel.redirect_unauthorized'));
17 17
         }
18 18
 
19
-        if(!AuthFacade::checkIsAdmin(auth()->user()->id)){
19
+        if (!AuthFacade::checkIsAdmin(auth()->user()->id)) {
20 20
             return redirect(config('easy_panel.redirect_unauthorized'));
21 21
         }
22 22
 
Please login to merge, or discard this patch.