@@ -23,8 +23,8 @@ discard block  | 
                                                    ||
| 23 | 23 | // Get user ID  | 
                                                        
| 24 | 24 |  $userid_attributename = $consentconfig->getValue('userid', 'eduPersonPrincipalName'); | 
                                                        
| 25 | 25 |  if (empty($attributes[$userid_attributename])) { | 
                                                        
| 26 | -    throw new \Exception('Could not generate useridentifier for storing consent. Attribute [' . | 
                                                        |
| 27 | - $userid_attributename . '] was not available.');  | 
                                                        |
| 26 | +    throw new \Exception('Could not generate useridentifier for storing consent. Attribute ['. | 
                                                        |
| 27 | + $userid_attributename.'] was not available.');  | 
                                                        |
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |
| 30 | 30 | $userid = $attributes[$userid_attributename][0];  | 
                                                        
@@ -43,9 +43,9 @@ discard block  | 
                                                    ||
| 43 | 43 | $idp_metadata = $metadata->getMetaData($idp_entityid, 'saml20-idp-hosted');  | 
                                                        
| 44 | 44 | }  | 
                                                        
| 45 | 45 | |
| 46 | -\SimpleSAML\Logger::debug('consentAdmin: IdP is [' . $idp_entityid . ']'); | 
                                                        |
| 46 | +\SimpleSAML\Logger::debug('consentAdmin: IdP is ['.$idp_entityid.']'); | 
                                                        |
| 47 | 47 | |
| 48 | -$source = $idp_metadata['metadata-set'] . '|' . $idp_entityid;  | 
                                                        |
| 48 | +$source = $idp_metadata['metadata-set'].'|'.$idp_entityid;  | 
                                                        |
| 49 | 49 | |
| 50 | 50 | // Parse consent config  | 
                                                        
| 51 | 51 |  $consent_storage = \SimpleSAML\Module\consent\Store::parseStoreConfig($consentconfig->getValue('store')); | 
                                                        
@@ -57,7 +57,7 @@ discard block  | 
                                                    ||
| 57 | 57 | // Check if button with withdraw all consent was clicked  | 
                                                        
| 58 | 58 |  if (array_key_exists('withdraw', $_REQUEST)) { | 
                                                        
| 59 | 59 | \SimpleSAML\Logger::info(  | 
                                                        
| 60 | - 'consentAdmin: UserID [' . $hashed_user_id . '] has requested to withdraw all consents given...'  | 
                                                        |
| 60 | + 'consentAdmin: UserID ['.$hashed_user_id.'] has requested to withdraw all consents given...'  | 
                                                        |
| 61 | 61 | );  | 
                                                        
| 62 | 62 | |
| 63 | 63 | $consent_storage->deleteAllConsents($hashed_user_id);  | 
                                                        
@@ -73,7 +73,7 @@ discard block  | 
                                                    ||
| 73 | 73 | }  | 
                                                        
| 74 | 74 | |
| 75 | 75 | \SimpleSAML\Logger::debug(  | 
                                                        
| 76 | - 'consentAdmin: no of consents [' . count($user_consent_list) . '] no of services [' . count($consentServices) . ']'  | 
                                                        |
| 76 | + 'consentAdmin: no of consents ['.count($user_consent_list).'] no of services ['.count($consentServices).']'  | 
                                                        |
| 77 | 77 | );  | 
                                                        
| 78 | 78 | |
| 79 | 79 | // Init template  | 
                                                        
@@ -82,8 +82,8 @@ discard block  | 
                                                    ||
| 82 | 82 | $t->data['consentServices'] = count($consentServices);  | 
                                                        
| 83 | 83 | $t->data['consents'] = count($user_consent_list);  | 
                                                        
| 84 | 84 |  $t->data['granted'] = $t->getTranslator()->t('{consentSimpleAdmin:consentsimpleadmin:granted}', [ | 
                                                        
| 85 | - '%NO%' => (string)$this->data['consents'],  | 
                                                        |
| 86 | - '%OF%' => (string)$this->data['consentServices'],  | 
                                                        |
| 85 | + '%NO%' => (string) $this->data['consents'],  | 
                                                        |
| 86 | + '%OF%' => (string) $this->data['consentServices'],  | 
                                                        |
| 87 | 87 | ]);  | 
                                                        
| 88 | 88 | |
| 89 | 89 | $t->send();  | 
                                                        
@@ -25,6 +25,6 @@  | 
                                                    ||
| 25 | 25 | $hookinfo['errors'][] = '[consentSimpleAdmin] Consent Storage selftest failed.';  | 
                                                        
| 26 | 26 | }  | 
                                                        
| 27 | 27 |      } catch (\Exception $e) { | 
                                                        
| 28 | - $hookinfo['errors'][] = '[consentSimpleAdmin] Error connecting to storage: ' . $e->getMessage();  | 
                                                        |
| 28 | + $hookinfo['errors'][] = '[consentSimpleAdmin] Error connecting to storage: '.$e->getMessage();  | 
                                                        |
| 29 | 29 | }  | 
                                                        
| 30 | 30 | }  |