Completed
Push — master ( 8a4feb...94533c )
by Vojta
01:21
created
repositories/UserRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
 				return $user;
39 39
 
40
-			} catch(AuthException $e) {
40
+			} catch (AuthException $e) {
41 41
 				$user = null;
42 42
 			}
43 43
 
Please login to merge, or discard this patch.
Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     /**
11 11
      * @var array Plugin dependencies
12 12
      */
13
-    public $require = ['RainLab.User'];
13
+    public $require = [ 'RainLab.User' ];
14 14
 
15 15
     /**
16 16
      * Returns information about this plugin.
Please login to merge, or discard this patch.
components/CodeLogin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function onRun()
65 65
     {
66
-        $this->page['visible'] = $this->property('visible');
67
-        $this->page['button'] = $this->property('button');
66
+        $this->page[ 'visible' ] = $this->property('visible');
67
+        $this->page[ 'button' ] = $this->property('button');
68 68
     }
69 69
 
70 70
     /**
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
          */
91 91
         $data = post();
92 92
 
93
-        $rules = [];
94
-        $rules['code'] = 'required|min:2';
93
+        $rules = [ ];
94
+        $rules[ 'code' ] = 'required|min:2';
95 95
 
96
-        $messages = [];
97
-        $messages['required'] = trans('vojtasvoboda.codelogin::lang.form.required');
96
+        $messages = [ ];
97
+        $messages[ 'required' ] = trans('vojtasvoboda.codelogin::lang.form.required');
98 98
 
99 99
         $validation = Validator::make($data, $rules, $messages);
100 100
         if ($validation->fails()) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
          * Event just for backward compatibility. It's more then recommand use
125 125
          * standard rainlab.user.login event - see readme.
126 126
          */
127
-        Event::fire('vojtasvoboda.codelogin.afterlogin', [$user]);
127
+        Event::fire('vojtasvoboda.codelogin.afterlogin', [ $user ]);
128 128
 
129 129
         /*
130 130
          * Redirect to the intended page after successful sign in
Please login to merge, or discard this patch.