Skip to content

Commit 8fa9aaa

Browse files
committed
PSR-12
1 parent 244d365 commit 8fa9aaa

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lib/Auth/Process/SmartID.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,20 @@ private function addID($attributes, $request)
9797
foreach ($this->candidates as $idCandidate) {
9898
if (isset($attributes[$idCandidate][0])) {
9999
if (($this->add_authority) && (isset($state['saml:AuthenticatingAuthority'][0]))) {
100-
return ($this->add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0].'!'.
100+
return ($this->add_candidate ? $idCandidate . ':' : '') . $attributes[$idCandidate][0] . '!' .
101101
$state['saml:AuthenticatingAuthority'][0];
102102
} else {
103-
return ($this->add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0];
103+
return ($this->add_candidate ? $idCandidate . ':' : '') . $attributes[$idCandidate][0];
104104
}
105105
}
106106
}
107107
/*
108108
* At this stage no usable id_candidate has been detected.
109109
*/
110-
throw new \SimpleSAML\Error\Exception('This service needs at least one of the following
111-
attributes to identity users: '.implode(', ', $this->candidates).'. Unfortunately not
112-
one of them was detected. Please ask your institution administrator to release one of
113-
them, or try using another identity provider.');
110+
throw new \SimpleSAML\Error\Exception('This service needs at least one of the following ' .
111+
'attributes to identity users: '.implode(', ', $this->candidates).'. Unfortunately not '.
112+
'one of them was detected. Please ask your institution administrator to release one of '.
113+
'them, or try using another identity provider.');
114114
}
115115

116116

lib/Auth/Process/SmartName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private function getFullName($attributes)
2727
}
2828

2929
if (isset($attributes['sn']) && isset($attributes['givenName'])) {
30-
return $attributes['givenName'][0].' '.$attributes['sn'][0];
30+
return $attributes['givenName'][0] . ' ' . $attributes['sn'][0];
3131
}
3232

3333
if (isset($attributes['cn'])) {

tests/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

33
$projectRoot = dirname(__DIR__);
4-
require_once($projectRoot.'/vendor/autoload.php');
4+
require_once($projectRoot . '/vendor/autoload.php');
55

66
// Symlink module into ssp vendor lib so that templates and urls can resolve correctly
7-
$linkPath = $projectRoot.'/vendor/simplesamlphp/simplesamlphp/modules/negotiate';
7+
$linkPath = $projectRoot . '/vendor/simplesamlphp/simplesamlphp/modules/negotiate';
88
if (file_exists($linkPath) === false) {
99
echo "Linking '$linkPath' to '$projectRoot'\n";
1010
symlink($projectRoot, $linkPath);

0 commit comments

Comments
 (0)