@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $authsources = Configuration::loadFromArray($config); |
| 101 | 101 | |
| 102 | - $this->casConfig = (array)$authsources->getValue('cas'); |
|
| 103 | - $this->ldapConfig = (array)$authsources->getValue('ldap'); |
|
| 102 | + $this->casConfig = (array) $authsources->getValue('cas'); |
|
| 103 | + $this->ldapConfig = (array) $authsources->getValue('ldap'); |
|
| 104 | 104 | |
| 105 | 105 | if (isset($this->casConfig['serviceValidate'])) { |
| 106 | 106 | $this->validationMethod = 'serviceValidate'; |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | /** @var \SimpleSAML\Auth\Source|null $source */ |
| 302 | 302 | $source = Auth\Source::getById($backendId); |
| 303 | 303 | if ($source === null) { |
| 304 | - throw new Exception('Could not find authentication source with id ' . $backendId); |
|
| 304 | + throw new Exception('Could not find authentication source with id '.$backendId); |
|
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | // Ensure we only call getAttributes() on an LDAP authsource that supports it |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | try { |
| 316 | 316 | $ldapAttributes = $source->getAttributes($username); |
| 317 | 317 | } catch (Exception $e) { |
| 318 | - Logger::debug('CAS - ldap lookup failed: ' . $e->getMessage()); |
|
| 318 | + Logger::debug('CAS - ldap lookup failed: '.$e->getMessage()); |
|
| 319 | 319 | $ldapAttributes = []; |
| 320 | 320 | } |
| 321 | 321 | } |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | * 1: array<string, list<string>> |
| 388 | 388 | * } |
| 389 | 389 | */ |
| 390 | - private function parseAuthenticationSuccess(CasAuthnSuccess|SlateAuthnSuccess $message): array |
|
| 390 | + private function parseAuthenticationSuccess(CasAuthnSuccess | SlateAuthnSuccess $message): array |
|
| 391 | 391 | { |
| 392 | 392 | /** @var array<string, list<string>> $result */ |
| 393 | 393 | $result = []; |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | // Key selection rule |
| 415 | 415 | $key = ($prefix === '' || $prefix === 'cas') |
| 416 | 416 | ? $localName |
| 417 | - : ($prefix . ':' . $localName); |
|
| 417 | + : ($prefix.':'.$localName); |
|
| 418 | 418 | |
| 419 | 419 | $value = trim($xmlElement->textContent ?? ''); |
| 420 | 420 | |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | * @return void |
| 440 | 440 | */ |
| 441 | 441 | private function parseAuthenticationSuccessMetadata( |
| 442 | - CasAuthnSuccess|SlateAuthnSuccess $message, |
|
| 442 | + CasAuthnSuccess | SlateAuthnSuccess $message, |
|
| 443 | 443 | array &$attributes, |
| 444 | 444 | ): void { |
| 445 | 445 | if (!method_exists($message, 'getElements')) { |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | // and just localName when there is none. |
| 467 | 467 | $key = ($prefix === '') |
| 468 | 468 | ? $localName |
| 469 | - : ($prefix . ':' . $localName); |
|
| 469 | + : ($prefix.':'.$localName); |
|
| 470 | 470 | |
| 471 | 471 | $value = trim($element->getXML()->textContent ?? ''); |
| 472 | 472 | |