soft squash for stylistic consistency

Replaced nested conditionals with cleaner equivalent to better match style
pull/107/head
DocArmoryTech 2022-09-02 10:10:05 +01:00 committed by GitHub
parent cf565484b9
commit 9f689cff24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -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);
}
}
}