@@ -241,7 +241,7 @@ |
||
241 | 241 | // Parse list of consents |
242 | 242 | $user_consent = []; |
243 | 243 | foreach ($user_consent_list as $c) { |
244 | - $user_consent[$c[0]] = $c[1]; |
|
244 | + $user_consent[$c[0]] = $c[1]; |
|
245 | 245 | } |
246 | 246 | |
247 | 247 | $template_sp_content = []; |
@@ -140,10 +140,10 @@ discard block |
||
140 | 140 | // Calc correct source |
141 | 141 | if ($as->getAuthData('saml:sp:IdP') !== null) { |
142 | 142 | // from a remote idp (as bridge) |
143 | - $source = 'saml20-idp-remote|' . $as->getAuthData('saml:sp:IdP'); |
|
143 | + $source = 'saml20-idp-remote|'.$as->getAuthData('saml:sp:IdP'); |
|
144 | 144 | } else { |
145 | 145 | // from the local idp |
146 | - $source = $idp_metadata['metadata-set'] . '|' . $idp_entityid; |
|
146 | + $source = $idp_metadata['metadata-set'].'|'.$idp_entityid; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | // Get user ID |
@@ -167,10 +167,10 @@ discard block |
||
167 | 167 | // Get all SP metadata |
168 | 168 | $all_sp_metadata = $metadata->getList('saml20-sp-remote'); |
169 | 169 | |
170 | - $sp_entityid = $request->get('cv');; |
|
170 | + $sp_entityid = $request->get('cv'); ; |
|
171 | 171 | $action = $request->get('action'); |
172 | 172 | |
173 | - Logger::critical('consentAdmin: sp: ' . $sp_entityid . ' action: ' . $action); |
|
173 | + Logger::critical('consentAdmin: sp: '.$sp_entityid.' action: '.$action); |
|
174 | 174 | |
175 | 175 | // Remove services, whitch have consent disabled |
176 | 176 | if (isset($idp_metadata['consent.disable'])) { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | } |
182 | 182 | } |
183 | 183 | |
184 | - Logger::info('consentAdmin: ' . $idp_entityid); |
|
184 | + Logger::info('consentAdmin: '.$idp_entityid); |
|
185 | 185 | |
186 | 186 | // Parse consent config |
187 | 187 | $consent_storage = Store::parseStoreConfig($this->moduleConfig->getValue('consentadmin')); |
@@ -273,8 +273,8 @@ discard block |
||
273 | 273 | |
274 | 274 | // Translate attribute-names |
275 | 275 | foreach ($attributes_new as $orig_name => $value) { |
276 | - if (isset($template->data['attribute_' . htmlspecialchars(strtolower($orig_name))])) { |
|
277 | - $old_name = $template->data['attribute_' . htmlspecialchars(strtolower($orig_name))]; |
|
276 | + if (isset($template->data['attribute_'.htmlspecialchars(strtolower($orig_name))])) { |
|
277 | + $old_name = $template->data['attribute_'.htmlspecialchars(strtolower($orig_name))]; |
|
278 | 278 | } |
279 | 279 | $name = $translator->getAttributeTranslation(strtolower($orig_name)); // translate |
280 | 280 | |
@@ -404,14 +404,14 @@ discard block |
||
404 | 404 | /* |
405 | 405 | * Generate identifiers and hashes |
406 | 406 | */ |
407 | - $destination = $sp_metadata['metadata-set'] . '|' . $sp_entityid; |
|
407 | + $destination = $sp_metadata['metadata-set'].'|'.$sp_entityid; |
|
408 | 408 | |
409 | 409 | $targeted_id = Consent::getTargetedID($userid, $source, $destination); |
410 | 410 | $attribute_hash = Consent::getAttributeHash($attributes, $hashAttributes); |
411 | 411 | |
412 | - Logger::info('consentAdmin: user: ' . $userid); |
|
413 | - Logger::info('consentAdmin: target: ' . $targeted_id); |
|
414 | - Logger::info('consentAdmin: attribute: ' . $attribute_hash); |
|
412 | + Logger::info('consentAdmin: user: '.$userid); |
|
413 | + Logger::info('consentAdmin: target: '.$targeted_id); |
|
414 | + Logger::info('consentAdmin: attribute: '.$attribute_hash); |
|
415 | 415 | |
416 | 416 | // Return values |
417 | 417 | return [$targeted_id, $attribute_hash, $attributes]; |