soft squash for stylistic consistency
Replaced nested conditionals with cleaner equivalent to better match stylepull/107/head
parent
cf565484b9
commit
9f689cff24
|
@ -56,10 +56,8 @@ class UsersTable extends AppTable
|
|||
|
||||
private function initAuthBehaviors()
|
||||
{
|
||||
if (!empty(Configure::read('keycloak'))) {
|
||||
if (Configure::read('keycloak.enabled')) {
|
||||
$this->addBehavior('AuthKeycloak');
|
||||
}
|
||||
if (!empty(Configure::read('keycloak.enabled'))) {
|
||||
$this->addBehavior('AuthKeycloak');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -189,10 +187,8 @@ class UsersTable extends AppTable
|
|||
|
||||
public function enrollUserRouter($data): void
|
||||
{
|
||||
if (!empty(Configure::read('keycloak'))) {
|
||||
if (Configure::read('keycloak.enabled')) {
|
||||
$this->enrollUser($data);
|
||||
}
|
||||
if (!empty(Configure::read('keycloak.enabled'))) {
|
||||
$this->enrollUser($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue