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