@@ -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')); |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | |
270 | 270 | // Translate attribute-names |
271 | 271 | foreach ($attributes_new as $orig_name => $value) { |
272 | - if (isset($template->data['attribute_' . htmlspecialchars(strtolower($orig_name))])) { |
|
273 | - $old_name = $template->data['attribute_' . htmlspecialchars(strtolower($orig_name))]; |
|
272 | + if (isset($template->data['attribute_'.htmlspecialchars(strtolower($orig_name))])) { |
|
273 | + $old_name = $template->data['attribute_'.htmlspecialchars(strtolower($orig_name))]; |
|
274 | 274 | } |
275 | 275 | $name = $translator->getAttributeTranslation(strtolower($orig_name)); // translate |
276 | 276 | |
@@ -400,14 +400,14 @@ discard block |
||
400 | 400 | /* |
401 | 401 | * Generate identifiers and hashes |
402 | 402 | */ |
403 | - $destination = $sp_metadata['metadata-set'] . '|' . $sp_entityid; |
|
403 | + $destination = $sp_metadata['metadata-set'].'|'.$sp_entityid; |
|
404 | 404 | |
405 | 405 | $targeted_id = $this->consent::getTargetedID($userid, $source, $destination); |
406 | 406 | $attribute_hash = $this->consent::getAttributeHash($attributes, $hashAttributes); |
407 | 407 | |
408 | - Logger::info('consentAdmin: user: ' . $userid); |
|
409 | - Logger::info('consentAdmin: target: ' . $targeted_id); |
|
410 | - Logger::info('consentAdmin: attribute: ' . $attribute_hash); |
|
408 | + Logger::info('consentAdmin: user: '.$userid); |
|
409 | + Logger::info('consentAdmin: target: '.$targeted_id); |
|
410 | + Logger::info('consentAdmin: attribute: '.$attribute_hash); |
|
411 | 411 | |
412 | 412 | // Return values |
413 | 413 | return [$targeted_id, $attribute_hash, $attributes]; |