Completed
Pull Request — master (#160)
by
unknown
01:52
created
src/BaseServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'middleware' => 'web',
57 57
             'prefix'     => config('backpack.base.route_prefix'),
58 58
             ],
59
-            function () {
59
+            function() {
60 60
             // if not otherwise configured, setup the auth routes
61 61
                 if (config('backpack.base.setup_auth_routes')) {
62 62
                     // if permission restriction is on disable backpack auth routes
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             'middleware' => ['web', 'admin'],
75 75
             'prefix'     => config('backpack.base.route_prefix'),
76 76
             ],
77
-            function () {
77
+            function() {
78 78
             // if not otherwise configured, setup the dashboard routes
79 79
                 if (config('backpack.base.setup_dashboard_routes')) {
80 80
                     Route::get('dashboard', 'AdminController@dashboard');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function register()
93 93
     {
94 94
         // register the current package
95
-        $this->app->bind('base', function ($app) {
95
+        $this->app->bind('base', function($app) {
96 96
             return new Base($app);
97 97
         });
98 98
 
Please login to merge, or discard this patch.
src/app/Http/Middleware/Admin.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         else if (config('backpack.base.permission_protection')) 
34 34
         {
35
-            if (! $request->user()->can(config('backpack.base.permission_name'))) {
35
+            if (!$request->user()->can(config('backpack.base.permission_name'))) {
36 36
                 abort(403);          
37 37
             }
38 38
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,7 @@
 block discarded – undo
28 28
                 }
29 29
                 return redirect()->guest('/login');
30 30
             }
31
-        }
32
-
33
-        else if (config('backpack.base.permission_protection')) 
31
+        } else if (config('backpack.base.permission_protection')) 
34 32
         {
35 33
             if (! $request->user()->can(config('backpack.base.permission_name'))) {
36 34
                 abort(403);          
Please login to merge, or discard this patch.