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()
|
private function initAuthBehaviors()
|
||||||
{
|
{
|
||||||
if (!empty(Configure::read('keycloak'))) {
|
if (!empty(Configure::read('keycloak.enabled'))) {
|
||||||
if (Configure::read('keycloak.enabled')) {
|
$this->addBehavior('AuthKeycloak');
|
||||||
$this->addBehavior('AuthKeycloak');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,10 +187,8 @@ class UsersTable extends AppTable
|
||||||
|
|
||||||
public function enrollUserRouter($data): void
|
public function enrollUserRouter($data): void
|
||||||
{
|
{
|
||||||
if (!empty(Configure::read('keycloak'))) {
|
if (!empty(Configure::read('keycloak.enabled'))) {
|
||||||
if (Configure::read('keycloak.enabled')) {
|
$this->enrollUser($data);
|
||||||
$this->enrollUser($data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue