@@ -106,7 +106,7 @@ |
||
| 106 | 106 | /** @var \SimpleSAML\Module\cas\Auth\Source\CAS|null $source */ |
| 107 | 107 | $source = $this->authSource::getById($sourceId); |
| 108 | 108 | if ($source === null) { |
| 109 | - throw new Exception('Could not find authentication source with id ' . $sourceId); |
|
| 109 | + throw new Exception('Could not find authentication source with id '.$sourceId); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $source->finalStep($state); |
@@ -183,13 +183,13 @@ |
||
| 183 | 183 | // array is empty or not set then an empty array will be returned. |
| 184 | 184 | $attributesFromQueryConfiguration = $this->parseQueryAttributes($dom); |
| 185 | 185 | if (!empty($attributesFromQueryConfiguration)) { |
| 186 | - // Overwrite attributes from parseAuthenticationSuccess with configured |
|
| 187 | - // XPath-based attributes, instead of combining them. |
|
| 186 | + // Overwrite attributes from parseAuthenticationSuccess with configured |
|
| 187 | + // XPath-based attributes, instead of combining them. |
|
| 188 | 188 | foreach ($attributesFromQueryConfiguration as $name => $values) { |
| 189 | - // Ensure a clean, unique list of string values |
|
| 189 | + // Ensure a clean, unique list of string values |
|
| 190 | 190 | $values = array_values(array_unique(array_map('strval', $values))); |
| 191 | 191 | |
| 192 | - // Configuration wins: replace any existing attribute with the same name |
|
| 192 | + // Configuration wins: replace any existing attribute with the same name |
|
| 193 | 193 | $attributes[$name] = $values; |
| 194 | 194 | } |
| 195 | 195 | } |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | |
| 237 | 237 | $config = Configuration::loadFromArray( |
| 238 | 238 | $this->ldapConfig, |
| 239 | - 'Authentication source ' . var_export($this->authId, true), |
|
| 239 | + 'Authentication source '.var_export($this->authId, true), |
|
| 240 | 240 | ); |
| 241 | 241 | if (!empty($this->ldapConfig['servers'])) { |
| 242 | 242 | $ldap = new Ldap( |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | * 1: array<string, list<string>> |
| 321 | 321 | * } |
| 322 | 322 | */ |
| 323 | - private function parseAuthenticationSuccess(CasAuthnSuccess|SlateAuthnSuccess $message): array |
|
| 323 | + private function parseAuthenticationSuccess(CasAuthnSuccess | SlateAuthnSuccess $message): array |
|
| 324 | 324 | { |
| 325 | 325 | /** @var array<string, list<string>> $result */ |
| 326 | 326 | $result = []; |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | // Key selection rule |
| 348 | 348 | $key = ($prefix === '' || $prefix === 'cas') |
| 349 | 349 | ? $localName |
| 350 | - : ($prefix . ':' . $localName); |
|
| 350 | + : ($prefix.':'.$localName); |
|
| 351 | 351 | |
| 352 | 352 | $value = trim($xmlElement->textContent ?? ''); |
| 353 | 353 | |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | * @return void |
| 373 | 373 | */ |
| 374 | 374 | private function parseAuthenticationSuccessMetadata( |
| 375 | - CasAuthnSuccess|SlateAuthnSuccess $message, |
|
| 375 | + CasAuthnSuccess | SlateAuthnSuccess $message, |
|
| 376 | 376 | array &$attributes, |
| 377 | 377 | ): void { |
| 378 | 378 | if (!method_exists($message, 'getElements')) { |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | // and just localName when there is none. |
| 400 | 400 | $key = ($prefix === '') |
| 401 | 401 | ? $localName |
| 402 | - : ($prefix . ':' . $localName); |
|
| 402 | + : ($prefix.':'.$localName); |
|
| 403 | 403 | |
| 404 | 404 | $value = trim($element->getXML()->textContent ?? ''); |
| 405 | 405 | |