Passed
Push — master ( f10917...ed5ad1 )
by Tim
02:24 queued 11s
created
lib/Store.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         }
130 130
 
131 131
         if (!is_array($config)) {
132
-            throw new \Exception('Invalid configuration for consent store option: ' . var_export($config, true));
132
+            throw new \Exception('Invalid configuration for consent store option: '.var_export($config, true));
133 133
         }
134 134
 
135 135
         if (!array_key_exists(0, $config)) {
Please login to merge, or discard this patch.
lib/Consent/Store/Database.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
     public function hasConsent(string $userId, string $destinationId, string $attributeSet): bool
171 171
     {
172 172
         $st = $this->execute(
173
-            'UPDATE ' . $this->table . ' ' .
174
-            'SET usage_date = ' . $this->dateTime . ' ' .
173
+            'UPDATE '.$this->table.' '.
174
+            'SET usage_date = '.$this->dateTime.' '.
175 175
             'WHERE hashed_user_id = ? AND service_id = ? AND attribute = ?',
176 176
             [$userId, $destinationId, $attributeSet]
177 177
         );
@@ -207,8 +207,8 @@  discard block
 block discarded – undo
207 207
     {
208 208
         // Check for old consent (with different attribute set)
209 209
         $st = $this->execute(
210
-            'UPDATE ' . $this->table . ' ' .
211
-            'SET consent_date = ' . $this->dateTime . ', usage_date = ' . $this->dateTime . ', attribute = ? ' .
210
+            'UPDATE '.$this->table.' '.
211
+            'SET consent_date = '.$this->dateTime.', usage_date = '.$this->dateTime.', attribute = ? '.
212 212
             'WHERE hashed_user_id = ? AND service_id = ?',
213 213
             [$attributeSet, $userId, $destinationId]
214 214
         );
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 
226 226
         // Add new consent
227 227
         $st = $this->execute(
228
-            'INSERT INTO ' . $this->table . ' (' . 'consent_date, usage_date, hashed_user_id, service_id, attribute' .
229
-            ') ' . 'VALUES (' . $this->dateTime . ', ' . $this->dateTime . ', ?, ?, ?)',
228
+            'INSERT INTO '.$this->table.' ('.'consent_date, usage_date, hashed_user_id, service_id, attribute'.
229
+            ') '.'VALUES ('.$this->dateTime.', '.$this->dateTime.', ?, ?, ?)',
230 230
             [$userId, $destinationId, $attributeSet]
231 231
         );
232 232
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     public function deleteConsent(string $userId, string $destinationId): int
251 251
     {
252 252
         $st = $this->execute(
253
-            'DELETE FROM ' . $this->table . ' WHERE hashed_user_id = ? AND service_id = ?;',
253
+            'DELETE FROM '.$this->table.' WHERE hashed_user_id = ? AND service_id = ?;',
254 254
             [$userId, $destinationId]
255 255
         );
256 256
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     public function deleteAllConsents(string $userId): int
279 279
     {
280 280
         $st = $this->execute(
281
-            'DELETE FROM ' . $this->table . ' WHERE hashed_user_id = ?',
281
+            'DELETE FROM '.$this->table.' WHERE hashed_user_id = ?',
282 282
             [$userId]
283 283
         );
284 284
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         }
288 288
 
289 289
         if ($st->rowCount() > 0) {
290
-            Logger::debug('consent:Database - Deleted (' . $st->rowCount() . ') consent(s) . ');
290
+            Logger::debug('consent:Database - Deleted ('.$st->rowCount().') consent(s) . ');
291 291
             return $st->rowCount();
292 292
         }
293 293
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         $ret = [];
311 311
 
312 312
         $st = $this->execute(
313
-            'SELECT service_id, attribute, consent_date, usage_date FROM ' . $this->table .
313
+            'SELECT service_id, attribute, consent_date, usage_date FROM '.$this->table.
314 314
             ' WHERE hashed_user_id = ?',
315 315
             [$userId]
316 316
         );
@@ -349,16 +349,16 @@  discard block
 block discarded – undo
349 349
         $st = $db->prepare($statement);
350 350
         if ($st === false) {
351 351
             Logger::error(
352
-                'consent:Database - Error preparing statement \'' .
353
-                $statement . '\': ' . self::formatError($db->errorInfo())
352
+                'consent:Database - Error preparing statement \''.
353
+                $statement.'\': '.self::formatError($db->errorInfo())
354 354
             );
355 355
             return false;
356 356
         }
357 357
 
358 358
         if ($st->execute($parameters) !== true) {
359 359
             Logger::error(
360
-                'consent:Database - Error executing statement \'' .
361
-                $statement . '\': ' . self::formatError($st->errorInfo())
360
+                'consent:Database - Error executing statement \''.
361
+                $statement.'\': '.self::formatError($st->errorInfo())
362 362
             );
363 363
             return false;
364 364
         }
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         $ret = [];
383 383
 
384 384
         // Get total number of consents
385
-        $st = $this->execute('SELECT COUNT(*) AS no FROM ' . $this->table, []);
385
+        $st = $this->execute('SELECT COUNT(*) AS no FROM '.$this->table, []);
386 386
 
387 387
         if ($st === false) {
388 388
             return [];
@@ -394,8 +394,8 @@  discard block
 block discarded – undo
394 394
 
395 395
         // Get total number of users that has given consent
396 396
         $st = $this->execute(
397
-            'SELECT COUNT(*) AS no ' .
398
-            'FROM (SELECT DISTINCT hashed_user_id FROM ' . $this->table . ' ) AS foo',
397
+            'SELECT COUNT(*) AS no '.
398
+            'FROM (SELECT DISTINCT hashed_user_id FROM '.$this->table.' ) AS foo',
399 399
             []
400 400
         );
401 401
 
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 
410 410
         // Get total number of services that has been given consent to
411 411
         $st = $this->execute(
412
-            'SELECT COUNT(*) AS no FROM (SELECT DISTINCT service_id FROM ' . $this->table . ') AS foo',
412
+            'SELECT COUNT(*) AS no FROM (SELECT DISTINCT service_id FROM '.$this->table.') AS foo',
413 413
             []
414 414
         );
415 415
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
     {
466 466
         Assert::greaterThanEq(count($error), 3);
467 467
 
468
-        return $error[0] . ' - ' . $error[2] . ' (' . $error[1] . ')';
468
+        return $error[0].' - '.$error[2].' ('.$error[1].')';
469 469
     }
470 470
 
471 471
 
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
     public function selftest(): bool
478 478
     {
479 479
         $st = $this->execute(
480
-            'SELECT * FROM ' . $this->table . ' WHERE hashed_user_id = ? AND service_id = ? AND attribute = ?',
480
+            'SELECT * FROM '.$this->table.' WHERE hashed_user_id = ? AND service_id = ? AND attribute = ?',
481 481
             ['test', 'test', 'test']
482 482
         );
483 483
 
Please login to merge, or discard this patch.
lib/Consent/Store/Cookie.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,19 +46,19 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $cookieName = self::getCookieName($userId, $destinationId);
48 48
 
49
-        $data = $userId . ':' . $attributeSet . ':' . $destinationId;
49
+        $data = $userId.':'.$attributeSet.':'.$destinationId;
50 50
 
51
-        Logger::debug('Consent cookie - Get [' . $data . ']');
51
+        Logger::debug('Consent cookie - Get ['.$data.']');
52 52
 
53 53
         if (!array_key_exists($cookieName, $_COOKIE)) {
54 54
             Logger::debug(
55
-                'Consent cookie - no cookie with name \'' . $cookieName . '\'.'
55
+                'Consent cookie - no cookie with name \''.$cookieName.'\'.'
56 56
             );
57 57
             return false;
58 58
         }
59 59
         if (!is_string($_COOKIE[$cookieName])) {
60 60
             Logger::warning(
61
-                'Value of consent cookie wasn\'t a string. Was: ' .
61
+                'Value of consent cookie wasn\'t a string. Was: '.
62 62
                 var_export($_COOKIE[$cookieName], true)
63 63
             );
64 64
             return false;
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
     public function saveConsent(string $userId, string $destinationId, string $attributeSet): bool
97 97
     {
98 98
         $name = self::getCookieName($userId, $destinationId);
99
-        $value = $userId . ':' . $attributeSet . ':' . $destinationId;
99
+        $value = $userId.':'.$attributeSet.':'.$destinationId;
100 100
 
101
-        Logger::debug('Consent cookie - Set [' . $value . ']');
101
+        Logger::debug('Consent cookie - Set ['.$value.']');
102 102
 
103 103
         $value = self::sign($value);
104 104
         return $this->setConsentCookie($name, $value);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             $tmp = explode(':', $value, 3);
169 169
             if (count($tmp) !== 3) {
170 170
                 Logger::warning(
171
-                    'Consent cookie with invalid value: ' . $value
171
+                    'Consent cookie with invalid value: '.$value
172 172
                 );
173 173
                 continue;
174 174
             }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $secretSalt = Utils\Config::getSecretSalt();
201 201
 
202
-        return sha1($secretSalt . $data . $secretSalt) . ':' . $data;
202
+        return sha1($secretSalt.$data.$secretSalt).':'.$data;
203 203
     }
204 204
 
205 205
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      */
244 244
     private static function getCookieName(string $userId, string $destinationId): string
245 245
     {
246
-        return '\SimpleSAML\Module\consent:' . sha1($userId . ':' . $destinationId);
246
+        return '\SimpleSAML\Module\consent:'.sha1($userId.':'.$destinationId);
247 247
     }
248 248
 
249 249
 
Please login to merge, or discard this patch.
lib/Auth/Process/Consent.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
         if (array_key_exists('includeValues', $config)) {
91 91
             if (!is_bool($config['includeValues'])) {
92 92
                 throw new Error\Exception(
93
-                    'Consent: includeValues must be boolean. ' .
94
-                    var_export($config['includeValues'], true) . ' given.'
93
+                    'Consent: includeValues must be boolean. '.
94
+                    var_export($config['includeValues'], true).' given.'
95 95
                 );
96 96
             }
97 97
             $this->includeValues = $config['includeValues'];
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
         if (array_key_exists('checked', $config)) {
101 101
             if (!is_bool($config['checked'])) {
102 102
                 throw new Error\Exception(
103
-                    'Consent: checked must be boolean. ' .
104
-                    var_export($config['checked'], true) . ' given.'
103
+                    'Consent: checked must be boolean. '.
104
+                    var_export($config['checked'], true).' given.'
105 105
                 );
106 106
             }
107 107
             $this->checked = $config['checked'];
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
         if (array_key_exists('focus', $config)) {
111 111
             if (!in_array($config['focus'], ['yes', 'no'], true)) {
112 112
                 throw new Error\Exception(
113
-                    'Consent: focus must be a string with values `yes` or `no`. ' .
114
-                    var_export($config['focus'], true) . ' given.'
113
+                    'Consent: focus must be a string with values `yes` or `no`. '.
114
+                    var_export($config['focus'], true).' given.'
115 115
                 );
116 116
             }
117 117
             $this->focus = $config['focus'];
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
         if (array_key_exists('hiddenAttributes', $config)) {
121 121
             if (!is_array($config['hiddenAttributes'])) {
122 122
                 throw new Error\Exception(
123
-                    'Consent: hiddenAttributes must be an array. ' .
124
-                    var_export($config['hiddenAttributes'], true) . ' given.'
123
+                    'Consent: hiddenAttributes must be an array. '.
124
+                    var_export($config['hiddenAttributes'], true).' given.'
125 125
                 );
126 126
             }
127 127
             $this->hiddenAttributes = $config['hiddenAttributes'];
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
         if (array_key_exists('attributes.exclude', $config)) {
131 131
             if (!is_array($config['attributes.exclude'])) {
132 132
                 throw new Error\Exception(
133
-                    'Consent: attributes.exclude must be an array. ' .
134
-                    var_export($config['attributes.exclude'], true) . ' given.'
133
+                    'Consent: attributes.exclude must be an array. '.
134
+                    var_export($config['attributes.exclude'], true).' given.'
135 135
                 );
136 136
             }
137 137
             $this->noconsentattributes = $config['attributes.exclude'];
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
             Logger::warning("The 'noconsentattributes' option has been deprecated in favour of 'attributes.exclude'.");
140 140
             if (!is_array($config['noconsentattributes'])) {
141 141
                 throw new Error\Exception(
142
-                    'Consent: noconsentattributes must be an array. ' .
143
-                    var_export($config['noconsentattributes'], true) . ' given.'
142
+                    'Consent: noconsentattributes must be an array. '.
143
+                    var_export($config['noconsentattributes'], true).' given.'
144 144
                 );
145 145
             }
146 146
             $this->noconsentattributes = $config['noconsentattributes'];
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 $this->store = \SimpleSAML\Module\consent\Store::parseStoreConfig($config['store']);
152 152
             } catch (Exception $e) {
153 153
                 Logger::error(
154
-                    'Consent: Could not create consent storage: ' .
154
+                    'Consent: Could not create consent storage: '.
155 155
                     $e->getMessage()
156 156
                 );
157 157
             }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
             isset($state['Source']['consent.disable']) &&
269 269
             self::checkDisable($state['Source']['consent.disable'], $spEntityId)
270 270
         ) {
271
-            Logger::debug('Consent: Consent disabled for entity ' . $spEntityId . ' with IdP ' . $idpEntityId);
271
+            Logger::debug('Consent: Consent disabled for entity '.$spEntityId.' with IdP '.$idpEntityId);
272 272
             Stats::log('consent:disabled', $statsData);
273 273
             return;
274 274
         }
@@ -276,14 +276,14 @@  discard block
 block discarded – undo
276 276
             isset($state['Destination']['consent.disable']) &&
277 277
             self::checkDisable($state['Destination']['consent.disable'], $idpEntityId)
278 278
         ) {
279
-            Logger::debug('Consent: Consent disabled for entity ' . $spEntityId . ' with IdP ' . $idpEntityId);
279
+            Logger::debug('Consent: Consent disabled for entity '.$spEntityId.' with IdP '.$idpEntityId);
280 280
             Stats::log('consent:disabled', $statsData);
281 281
             return;
282 282
         }
283 283
 
284 284
         if ($this->store !== null) {
285
-            $source = $state['Source']['metadata-set'] . '|' . $idpEntityId;
286
-            $destination = $state['Destination']['metadata-set'] . '|' . $spEntityId;
285
+            $source = $state['Source']['metadata-set'].'|'.$idpEntityId;
286
+            $destination = $state['Destination']['metadata-set'].'|'.$spEntityId;
287 287
             $attributes = $state['Attributes'];
288 288
 
289 289
             // Remove attributes that do not require consent
@@ -293,16 +293,16 @@  discard block
 block discarded – undo
293 293
                 }
294 294
             }
295 295
 
296
-            Logger::debug('Consent: userid: ' . $state['UserID']);
297
-            Logger::debug('Consent: source: ' . $source);
298
-            Logger::debug('Consent: destination: ' . $destination);
296
+            Logger::debug('Consent: userid: '.$state['UserID']);
297
+            Logger::debug('Consent: source: '.$source);
298
+            Logger::debug('Consent: destination: '.$destination);
299 299
 
300 300
             $userId = self::getHashedUserID($state['UserID'], $source);
301 301
             $targetedId = self::getTargetedID($state['UserID'], $source, $destination);
302 302
             $attributeSet = self::getAttributeHash($attributes, $this->includeValues);
303 303
 
304 304
             Logger::debug(
305
-                'Consent: hasConsent() [' . $userId . '|' . $targetedId . '|' . $attributeSet . ']'
305
+                'Consent: hasConsent() ['.$userId.'|'.$targetedId.'|'.$attributeSet.']'
306 306
             );
307 307
 
308 308
             try {
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
                 $state['consent:store.destination'] = $targetedId;
322 322
                 $state['consent:store.attributeSet'] = $attributeSet;
323 323
             } catch (\Exception $e) {
324
-                Logger::error('Consent: Error reading from storage: ' . $e->getMessage());
324
+                Logger::error('Consent: Error reading from storage: '.$e->getMessage());
325 325
                 Logger::stats('Consent failed');
326 326
                 Stats::log('consent:failed', $statsData);
327 327
             }
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      */
363 363
     public static function getHashedUserID(string $userid, string $source): string
364 364
     {
365
-        return hash('sha1', $userid . '|' . Utils\Config::getSecretSalt() . '|' . $source);
365
+        return hash('sha1', $userid.'|'.Utils\Config::getSecretSalt().'|'.$source);
366 366
     }
367 367
 
368 368
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      */
378 378
     public static function getTargetedID(string $userid, string $source, string $destination): string
379 379
     {
380
-        return hash('sha1', $userid . '|' . Utils\Config::getSecretSalt() . '|' . $source . '|' . $destination);
380
+        return hash('sha1', $userid.'|'.Utils\Config::getSecretSalt().'|'.$source.'|'.$destination);
381 381
     }
382 382
 
383 383
 
Please login to merge, or discard this patch.
www/getconsent.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
         $attributeSet = $state['consent:store.attributeSet'];
73 73
 
74 74
         \SimpleSAML\Logger::debug(
75
-            'Consent - saveConsent() : [' . $userId . '|' . $targetedId . '|' . $attributeSet . ']'
75
+            'Consent - saveConsent() : ['.$userId.'|'.$targetedId.'|'.$attributeSet.']'
76 76
         );
77 77
         try {
78 78
             $store->saveConsent($userId, $targetedId, $attributeSet);
79 79
         } catch (\Exception $e) {
80
-            \SimpleSAML\Logger::error('Consent: Error writing to storage: ' . $e->getMessage());
80
+            \SimpleSAML\Logger::error('Consent: Error writing to storage: '.$e->getMessage());
81 81
         }
82 82
     }
83 83
 
@@ -209,38 +209,38 @@  discard block
 block discarded – undo
209 209
 
210 210
     $alternate = ['odd', 'even'];
211 211
     $i = 0;
212
-    $summary = 'summary="' . $translator->t('List the information about you that is about to be transmitted to the service you are going to login to') . '"';
212
+    $summary = 'summary="'.$translator->t('List the information about you that is about to be transmitted to the service you are going to login to').'"';
213 213
 
214 214
     if (strlen($nameParent) > 0) {
215
-        $parentStr = strtolower($nameParent) . '_';
216
-        $str = '<table class="attributes" ' . $summary . '>';
215
+        $parentStr = strtolower($nameParent).'_';
216
+        $str = '<table class="attributes" '.$summary.'>';
217 217
     } else {
218 218
         $parentStr = '';
219
-        $str = '<table id="table_with_attributes" class="attributes" ' . $summary . '>';
220
-        $str .= "\n" . '<caption>' . $translator->t('User information') . '</caption>';
219
+        $str = '<table id="table_with_attributes" class="attributes" '.$summary.'>';
220
+        $str .= "\n".'<caption>'.$translator->t('User information').'</caption>';
221 221
     }
222 222
 
223 223
     foreach ($attributes as $name => $value) {
224 224
         $nameraw = $name;
225
-        $name = $translator->getAttributeTranslation($parentStr . $nameraw);
225
+        $name = $translator->getAttributeTranslation($parentStr.$nameraw);
226 226
 
227 227
         if (preg_match('/^child_/', $nameraw)) {
228 228
             // insert child table
229 229
             $parentName = preg_replace('/^child_/', '', $nameraw);
230 230
             foreach ($value as $child) {
231
-                $str .= "\n" . '<tr class="odd"><td class="td_odd">' .
232
-                    present_attributes($t, $child, $parentName) . '</td></tr>';
231
+                $str .= "\n".'<tr class="odd"><td class="td_odd">'.
232
+                    present_attributes($t, $child, $parentName).'</td></tr>';
233 233
             }
234 234
         } else {
235 235
             // insert values directly
236 236
 
237
-            $str .= "\n" . '<tr class="' . $alternate[($i++ % 2)] .
238
-                '"><td><span class="attrname">' . htmlspecialchars($name) . '</span></td>';
237
+            $str .= "\n".'<tr class="'.$alternate[($i++ % 2)].
238
+                '"><td><span class="attrname">'.htmlspecialchars($name).'</span></td>';
239 239
 
240 240
             $isHidden = in_array($nameraw, $t->data['hiddenAttributes'], true);
241 241
             if ($isHidden) {
242 242
                 $hiddenId = \SimpleSAML\Utils\Random::generateID();
243
-                $str .= '<td><span class="attrvalue hidden" id="hidden_' . $hiddenId . '">';
243
+                $str .= '<td><span class="attrvalue hidden" id="hidden_'.$hiddenId.'">';
244 244
             } else {
245 245
                 $hiddenId = '';
246 246
                 $str .= '<td><span class="attrvalue">';
@@ -251,18 +251,18 @@  discard block
 block discarded – undo
251 251
                 $str .= '<ul>';
252 252
                 foreach ($value as $listitem) {
253 253
                     if ($nameraw === 'jpegPhoto') {
254
-                        $str .= '<li><img src="data:image/jpeg;base64,' .
255
-                            htmlspecialchars($listitem) . '" alt="User photo" /></li>';
254
+                        $str .= '<li><img src="data:image/jpeg;base64,'.
255
+                            htmlspecialchars($listitem).'" alt="User photo" /></li>';
256 256
                     } else {
257
-                        $str .= '<li>' . htmlspecialchars($listitem) . '</li>';
257
+                        $str .= '<li>'.htmlspecialchars($listitem).'</li>';
258 258
                     }
259 259
                 }
260 260
                 $str .= '</ul>';
261 261
             } elseif (isset($value[0])) {
262 262
                 // we hawe only one value
263 263
                 if ($nameraw === 'jpegPhoto') {
264
-                    $str .= '<img src="data:image/jpeg;base64,' .
265
-                        htmlspecialchars($value[0]) . '" alt="User photo" />';
264
+                    $str .= '<img src="data:image/jpeg;base64,'.
265
+                        htmlspecialchars($value[0]).'" alt="User photo" />';
266 266
                 } else {
267 267
                     $str .= htmlspecialchars($value[0]);
268 268
                 }
@@ -270,10 +270,10 @@  discard block
 block discarded – undo
270 270
             $str .= '</span>';
271 271
 
272 272
             if ($isHidden) {
273
-                $str .= '<div class="attrvalue consent_showattribute" id="visible_' . $hiddenId . '">';
273
+                $str .= '<div class="attrvalue consent_showattribute" id="visible_'.$hiddenId.'">';
274 274
                 $str .= '... ';
275
-                $str .= '<a class="consent_showattributelink" href="javascript:SimpleSAML_show(\'hidden_' . $hiddenId;
276
-                $str .= '\'); SimpleSAML_hide(\'visible_' . $hiddenId . '\');">';
275
+                $str .= '<a class="consent_showattributelink" href="javascript:SimpleSAML_show(\'hidden_'.$hiddenId;
276
+                $str .= '\'); SimpleSAML_hide(\'visible_'.$hiddenId.'\');">';
277 277
                 $str .= $translator->t('Show attributes');
278 278
                 $str .= '</a>';
279 279
                 $str .= '</div>';
Please login to merge, or discard this patch.