Completed
Push — master ( 6f34f3...40b401 )
by Vojta
01:41
created
models/AccessLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * @var array Relations
19 19
      */
20 20
     public $belongsTo = [
21
-        'user' => [User::class],
21
+        'user' => [ User::class ],
22 22
     ];
23 23
 
24 24
     /**
Please login to merge, or discard this patch.
models/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     use ValidationTrait;
9 9
 
10
-    public $implement = ['System.Behaviors.SettingsModel'];
10
+    public $implement = [ 'System.Behaviors.SettingsModel' ];
11 11
 
12 12
     public $settingsCode = 'vojtasvoboda_useraccesslog_settings';
13 13
 
Please login to merge, or discard this patch.
Plugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
     public function boot()
39 39
     {
40 40
         // log user after login
41
-        Event::listen('rainlab.user.login', function ($user) {
41
+        Event::listen('rainlab.user.login', function($user) {
42 42
             AccessLog::add($user);
43 43
         });
44 44
 
45 45
         // extend users side-menu with User Access log
46 46
         if (!empty(Settings::get('show_access_log_listing', false))) {
47
-            Event::listen('backend.menu.extendItems', function ($manager) {
47
+            Event::listen('backend.menu.extendItems', function($manager) {
48 48
                 $manager->addSideMenuItem('RainLab.User', 'user', 'access_log', [
49 49
                     'label' => 'backend::lang.access_log.menu_label',
50 50
                     'url' => Backend::url('vojtasvoboda/useraccesslog/log'),
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 'icon' => 'icon-cog',
87 87
                 'description' => 'vojtasvoboda.useraccesslog::lang.settings.description',
88 88
                 'class' => Settings::class,
89
-                'permissions' => ['vojtasvoboda.useraccesslog.*'],
89
+                'permissions' => [ 'vojtasvoboda.useraccesslog.*' ],
90 90
                 'order' => 600,
91 91
             ]
92 92
         ];
Please login to merge, or discard this patch.