Passed
Pull Request — master (#3)
by Tim
02:58
created
lib/Controller/ConsentAdmin.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
         // Calc correct source
158 158
         if ($as->getAuthData('saml:sp:IdP') !== null) {
159 159
             // from a remote idp (as bridge)
160
-            $source = 'saml20-idp-remote|' . $as->getAuthData('saml:sp:IdP');
160
+            $source = 'saml20-idp-remote|'.$as->getAuthData('saml:sp:IdP');
161 161
         } else {
162 162
             // from the local idp
163
-            $source = $idp_metadata['metadata-set'] . '|' . $idp_entityid;
163
+            $source = $idp_metadata['metadata-set'].'|'.$idp_entityid;
164 164
         }
165 165
 
166 166
         // Get user ID
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
         // Get all SP metadata
185 185
         $all_sp_metadata = $metadata->getList('saml20-sp-remote');
186 186
 
187
-        $sp_entityid = $request->get('cv');;
187
+        $sp_entityid = $request->get('cv'); ;
188 188
         $action = $request->get('action');
189 189
 
190
-        Logger::critical('consentAdmin: sp: ' . $sp_entityid . ' action: ' . $action);
190
+        Logger::critical('consentAdmin: sp: '.$sp_entityid.' action: '.$action);
191 191
 
192 192
         // Remove services, whitch have consent disabled
193 193
         if (isset($idp_metadata['consent.disable'])) {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             }
199 199
         }
200 200
 
201
-        Logger::info('consentAdmin: ' . $idp_entityid);
201
+        Logger::info('consentAdmin: '.$idp_entityid);
202 202
 
203 203
         // Parse consent config
204 204
         $consent_storage = $this->store::parseStoreConfig($this->moduleConfig->getValue('consentadmin'));
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
 
286 286
             // Translate attribute-names
287 287
             foreach ($attributes_new as $orig_name => $value) {
288
-                if (isset($template->data['attribute_' . htmlspecialchars(strtolower($orig_name))])) {
289
-                    $old_name = $template->data['attribute_' . htmlspecialchars(strtolower($orig_name))];
288
+                if (isset($template->data['attribute_'.htmlspecialchars(strtolower($orig_name))])) {
289
+                    $old_name = $template->data['attribute_'.htmlspecialchars(strtolower($orig_name))];
290 290
                 }
291 291
                 $name = $translator->getAttributeTranslation(strtolower($orig_name)); // translate
292 292
 
@@ -415,14 +415,14 @@  discard block
 block discarded – undo
415 415
         /*
416 416
          * Generate identifiers and hashes
417 417
          */
418
-        $destination = $sp_metadata['metadata-set'] . '|' . $sp_entityid;
418
+        $destination = $sp_metadata['metadata-set'].'|'.$sp_entityid;
419 419
 
420 420
         $targeted_id = $this->consent::getTargetedID($userid, $source, $destination);
421 421
         $attribute_hash = $this->consent::getAttributeHash($attributes, $hashAttributes);
422 422
 
423
-        Logger::info('consentAdmin: user: ' . $userid);
424
-        Logger::info('consentAdmin: target: ' . $targeted_id);
425
-        Logger::info('consentAdmin: attribute: ' . $attribute_hash);
423
+        Logger::info('consentAdmin: user: '.$userid);
424
+        Logger::info('consentAdmin: target: '.$targeted_id);
425
+        Logger::info('consentAdmin: attribute: '.$attribute_hash);
426 426
 
427 427
         // Return values
428 428
         return [$targeted_id, $attribute_hash, $attributes];
Please login to merge, or discard this patch.