@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | $this->defineIsUsingMasterPass(); |
| 17 | 17 | |
| 18 | - Event::listen(Logout::class, function () { |
|
| 18 | + Event::listen(Logout::class, function() { |
|
| 19 | 19 | session()->remove(config('master_password.session_key')); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | private function changeUsersDriver() |
| 47 | 47 | { |
| 48 | - foreach(config('auth.providers', []) as $providerName => $providerConfig) { |
|
| 48 | + foreach (config('auth.providers', []) as $providerName => $providerConfig) { |
|
| 49 | 49 | $driver = $providerConfig['driver']; |
| 50 | 50 | |
| 51 | 51 | if (in_array($driver, ['eloquent', 'database'])) { |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | private function registerAuthProviders() |
| 58 | 58 | { |
| 59 | - \Auth::provider('eloquentMasterPassword', function ($app, array $config) { |
|
| 59 | + \Auth::provider('eloquentMasterPassword', function($app, array $config) { |
|
| 60 | 60 | return new MasterPassEloquentUserProvider($app['hash'], $config['model']); |
| 61 | 61 | }); |
| 62 | 62 | |
| 63 | - \Auth::provider('databaseMasterPassword', function ($app, array $config) { |
|
| 63 | + \Auth::provider('databaseMasterPassword', function($app, array $config) { |
|
| 64 | 64 | $connection = $app['db']->connection(); |
| 65 | 65 | |
| 66 | 66 | return new MasterPassDatabaseUserProvider($connection, $app['hash'], $config['table']); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | private function defineIsUsingMasterPass() |
| 71 | 71 | { |
| 72 | - Auth::macro('isLoggedInByMasterPass', function () { |
|
| 72 | + Auth::macro('isLoggedInByMasterPass', function() { |
|
| 73 | 73 | return session(config('master_password.session_key'), false); |
| 74 | 74 | }); |
| 75 | 75 | } |