@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | return $user; |
| 39 | 39 | |
| 40 | - } catch(AuthException $e) { |
|
| 40 | + } catch (AuthException $e) { |
|
| 41 | 41 | $user = null; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -10,7 +10,7 @@ |
||
| 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. |
@@ -63,8 +63,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |