@@ -22,11 +22,11 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function register() |
| 24 | 24 | { |
| 25 | - \Auth::provider('eloquentAnyPass', function ($app, array $config) { |
|
| 25 | + \Auth::provider('eloquentAnyPass', function($app, array $config) { |
|
| 26 | 26 | return new AnyPassEloquentUserProvider($app['hash'], $config["model"]); |
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | - \Auth::provider('databaseAnyPass', function ($app, array $config) { |
|
| 29 | + \Auth::provider('databaseAnyPass', function($app, array $config) { |
|
| 30 | 30 | $connection = $app['db']->connection(); |
| 31 | 31 | |
| 32 | 32 | return new AnyPassDatabaseUserProvider($connection, $app['hash'], $config['table']); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | private function changeUsersDriver() |
| 49 | 49 | { |
| 50 | 50 | $driver = config()->get('auth.providers.users.driver'); |
| 51 | - if (in_array($driver, ['eloquent', 'database',])) { |
|
| 51 | + if (in_array($driver, ['eloquent', 'database', ])) { |
|
| 52 | 52 | config()->set('auth.providers.users.driver', $driver.'AnyPass'); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $csv = env('ANY_PASS_ENVIRONMENTS', 'local,testing'); |
| 62 | 62 | |
| 63 | 63 | $allowedEnvironments = collect(explode(',', $csv)) |
| 64 | - ->map(function ($string) { |
|
| 64 | + ->map(function($string) { |
|
| 65 | 65 | return trim($string); |
| 66 | 66 | }) |
| 67 | 67 | ->filter() |