Passed
Pull Request — master (#9)
by
unknown
02:30
created
src/Controller/ConsentAdmin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -172,10 +172,10 @@  discard block
 block discarded – undo
172 172
         // Calc correct source
173 173
         if ($as->getAuthData('saml:sp:IdP') !== null) {
174 174
             // from a remote idp (as bridge)
175
-            $source = 'saml20-idp-remote|' . $as->getAuthData('saml:sp:IdP');
175
+            $source = 'saml20-idp-remote|'.$as->getAuthData('saml:sp:IdP');
176 176
         } else {
177 177
             // from the local idp
178
-            $source = $idp_metadata['metadata-set'] . '|' . $idp_entityid;
178
+            $source = $idp_metadata['metadata-set'].'|'.$idp_entityid;
179 179
         }
180 180
 
181 181
         // Get user ID
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $sp_entityid = $request->query->get('cv');
201 201
         $action = $request->query->get('action');
202 202
 
203
-        Logger::notice('consentAdmin: sp: ' . $sp_entityid . ' action: ' . $action);
203
+        Logger::notice('consentAdmin: sp: '.$sp_entityid.' action: '.$action);
204 204
 
205 205
         // Remove services, whitch have consent disabled
206 206
         if (isset($idp_metadata['consent.disable'])) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             }
212 212
         }
213 213
 
214
-        Logger::info('consentAdmin: ' . $idp_entityid);
214
+        Logger::info('consentAdmin: '.$idp_entityid);
215 215
 
216 216
         // Parse consent config
217 217
         $consent_storage = $this->store::parseStoreConfig($this->moduleConfig->getValue('consentadmin'));
@@ -402,14 +402,14 @@  discard block
 block discarded – undo
402 402
         /*
403 403
          * Generate identifiers and hashes
404 404
          */
405
-        $destination = $sp_metadata['metadata-set'] . '|' . $sp_entityid;
405
+        $destination = $sp_metadata['metadata-set'].'|'.$sp_entityid;
406 406
 
407 407
         $targeted_id = $this->consent::getTargetedID($userid, $source, $destination);
408 408
         $attribute_hash = $this->consent::getAttributeHash($attributes, $hashAttributes);
409 409
 
410
-        Logger::info('consentAdmin: user: ' . $userid);
411
-        Logger::info('consentAdmin: target: ' . $targeted_id);
412
-        Logger::info('consentAdmin: attribute: ' . $attribute_hash);
410
+        Logger::info('consentAdmin: user: '.$userid);
411
+        Logger::info('consentAdmin: target: '.$targeted_id);
412
+        Logger::info('consentAdmin: attribute: '.$attribute_hash);
413 413
 
414 414
         // Return values
415 415
         return [$targeted_id, $attribute_hash, $attributes];
Please login to merge, or discard this patch.
hooks/hook_configpage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @param \SimpleSAML\XHTML\Template $template The template that we should alter in this hook.
13 13
  * @return void
14 14
  */
15
-function consentAdmin_hook_configpage(Template &$template): void
15
+function consentAdmin_hook_configpage(Template&$template): void
16 16
 {
17 17
     $template->data['links'][] = [
18 18
         'href' => Module::getModuleURL('consentAdmin/'),
Please login to merge, or discard this patch.