Completed
Pull Request — master (#1)
by
unknown
02:05
created
Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function boot()
10 10
     {
11
-        Event::listen('backend.menu.extendItems', function ($manager) {
11
+        Event::listen('backend.menu.extendItems', function($manager) {
12 12
             $manager->addSideMenuItems('RainLab.User', 'user', [
13 13
                 'banned' => [
14 14
                     'label' => 'vojtasvoboda.userbanned::lang.sidemenu.menu_label',
Please login to merge, or discard this patch.
controllers/Banned.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $throttleModel = Auth::createThrottleModel();
26 26
         $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function($item){
27
-          return $item->user_id;
27
+            return $item->user_id;
28 28
         });
29 29
         $query->whereIn('id', $bannedCollection);
30 30
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function listExtendQuery($query)
24 24
     {
25 25
         $throttleModel = Auth::createThrottleModel();
26
-        $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function($item){
26
+        $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function($item) {
27 27
           return $item->user_id;
28 28
         });
29 29
         $query->whereIn('id', $bannedCollection);
Please login to merge, or discard this patch.