Passed
Pull Request — master (#3)
by Tim
03:41 queued 59s
created
lib/Controller/ConsentAdmin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
         // Calc correct source
161 161
         if ($as->getAuthData('saml:sp:IdP') !== null) {
162 162
             // from a remote idp (as bridge)
163
-            $source = 'saml20-idp-remote|' . $as->getAuthData('saml:sp:IdP');
163
+            $source = 'saml20-idp-remote|'.$as->getAuthData('saml:sp:IdP');
164 164
         } else {
165 165
             // from the local idp
166
-            $source = $idp_metadata['metadata-set'] . '|' . $idp_entityid;
166
+            $source = $idp_metadata['metadata-set'].'|'.$idp_entityid;
167 167
         }
168 168
 
169 169
         // Get user ID
@@ -187,10 +187,10 @@  discard block
 block discarded – undo
187 187
         // Get all SP metadata
188 188
         $all_sp_metadata = $metadata->getList('saml20-sp-remote');
189 189
 
190
-        $sp_entityid = $request->get('cv');;
190
+        $sp_entityid = $request->get('cv'); ;
191 191
         $action = $request->get('action');
192 192
 
193
-        Logger::critical('consentAdmin: sp: ' . $sp_entityid . ' action: ' . $action);
193
+        Logger::critical('consentAdmin: sp: '.$sp_entityid.' action: '.$action);
194 194
 
195 195
         // Remove services, whitch have consent disabled
196 196
         if (isset($idp_metadata['consent.disable'])) {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             }
202 202
         }
203 203
 
204
-        Logger::info('consentAdmin: ' . $idp_entityid);
204
+        Logger::info('consentAdmin: '.$idp_entityid);
205 205
 
206 206
         // Parse consent config
207 207
         $consent_storage = $this->store::parseStoreConfig($this->moduleConfig->getValue('consentadmin'));
@@ -406,14 +406,14 @@  discard block
 block discarded – undo
406 406
         /*
407 407
          * Generate identifiers and hashes
408 408
          */
409
-        $destination = $sp_metadata['metadata-set'] . '|' . $sp_entityid;
409
+        $destination = $sp_metadata['metadata-set'].'|'.$sp_entityid;
410 410
 
411 411
         $targeted_id = $this->consent::getTargetedID($userid, $source, $destination);
412 412
         $attribute_hash = $this->consent::getAttributeHash($attributes, $hashAttributes);
413 413
 
414
-        Logger::info('consentAdmin: user: ' . $userid);
415
-        Logger::info('consentAdmin: target: ' . $targeted_id);
416
-        Logger::info('consentAdmin: attribute: ' . $attribute_hash);
414
+        Logger::info('consentAdmin: user: '.$userid);
415
+        Logger::info('consentAdmin: target: '.$targeted_id);
416
+        Logger::info('consentAdmin: attribute: '.$attribute_hash);
417 417
 
418 418
         // Return values
419 419
         return [$targeted_id, $attribute_hash, $attributes];
Please login to merge, or discard this patch.