Completed
Push — master ( 8a4feb...94533c )
by Vojta
01:21
created
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.