mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -38,8 +38,8 @@ use Log;
|
||||
class RemoteUserGuard implements Guard
|
||||
{
|
||||
protected Application $application;
|
||||
protected $provider;
|
||||
protected $user;
|
||||
protected $provider;
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Create a new authentication guard.
|
||||
|
||||
@@ -37,7 +37,6 @@ use Str;
|
||||
*/
|
||||
class RemoteUserProvider implements UserProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
@@ -65,7 +64,7 @@ class RemoteUserProvider implements UserProvider
|
||||
]
|
||||
);
|
||||
// if this is the first user, give them admin as well.
|
||||
if(1 === User::count()) {
|
||||
if (1 === User::count()) {
|
||||
$roleObject = Role::where('name', 'owner')->first();
|
||||
$user->roles()->attach($roleObject);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user