mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -52,15 +52,17 @@ class AuthServiceProvider extends ServiceProvider
|
||||
public function boot(): void
|
||||
{
|
||||
Auth::provider(
|
||||
'remote_user_provider', function ($app, array $config) {
|
||||
return new RemoteUserProvider;
|
||||
}
|
||||
'remote_user_provider',
|
||||
function ($app, array $config) {
|
||||
return new RemoteUserProvider();
|
||||
}
|
||||
);
|
||||
|
||||
Auth::extend(
|
||||
'remote_user_guard', static function ($app, string $name, array $config) {
|
||||
return new RemoteUserGuard(Auth::createUserProvider($config['provider']), $app);
|
||||
}
|
||||
'remote_user_guard',
|
||||
static function ($app, string $name, array $config) {
|
||||
return new RemoteUserGuard(Auth::createUserProvider($config['provider']), $app);
|
||||
}
|
||||
);
|
||||
|
||||
$this->registerPolicies();
|
||||
|
Reference in New Issue
Block a user