Passed
Push — master ( e26132...b45e0e )
by Reza
15:54
created
src/Http/Middleware/isAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 
11 11
     public function handle($request, Closure $next)
12 12
     {
13
-        if(auth()->guest()){
13
+        if (auth()->guest()) {
14 14
             return redirect(config('easy_panel.redirect_unauthorized'));
15 15
         }
16 16
 
17
-        if(!AuthFacade::checkIsAdmin(auth()->user()->id)){
17
+        if (!AuthFacade::checkIsAdmin(auth()->user()->id)) {
18 18
             return redirect(config('easy_panel.redirect_unauthorized'));
19 19
         }
20 20
 
Please login to merge, or discard this patch.