@@ -3,10 +3,10 @@ |
||
| 3 | 3 | declare(strict_types=1); |
| 4 | 4 | |
| 5 | 5 | $projectRoot = dirname(__DIR__); |
| 6 | -require_once($projectRoot . '/vendor/autoload.php'); |
|
| 6 | +require_once($projectRoot.'/vendor/autoload.php'); |
|
| 7 | 7 | |
| 8 | 8 | // Symlink module into ssp vendor lib so that templates and urls can resolve correctly |
| 9 | -$linkPath = $projectRoot . '/vendor/simplesamlphp/simplesamlphp/modules/negotiate'; |
|
| 9 | +$linkPath = $projectRoot.'/vendor/simplesamlphp/simplesamlphp/modules/negotiate'; |
|
| 10 | 10 | if (file_exists($linkPath) === false) { |
| 11 | 11 | echo "Linking '$linkPath' to '$projectRoot'\n"; |
| 12 | 12 | symlink($projectRoot, $linkPath); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | if (isset($attributes['sn']) && isset($attributes['givenName'])) { |
| 32 | - return $attributes['givenName'][0] . ' ' . $attributes['sn'][0]; |
|
| 32 | + return $attributes['givenName'][0].' '.$attributes['sn'][0]; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | if (isset($attributes['cn'])) { |
@@ -119,10 +119,10 @@ discard block |
||
| 119 | 119 | if (isset($attributes[$idCandidate][0])) { |
| 120 | 120 | if ($this->add_authority && count($state['saml:AuthenticatingAuthority']) > 0) { |
| 121 | 121 | $authority = end($state['saml:AuthenticatingAuthority']); |
| 122 | - return ($this->add_candidate ? $idCandidate . ':' : '') . $attributes[$idCandidate][0] . '!' . |
|
| 122 | + return ($this->add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0].'!'. |
|
| 123 | 123 | $authority; |
| 124 | 124 | } else { |
| 125 | - return ($this->add_candidate ? $idCandidate . ':' : '') . $attributes[$idCandidate][0]; |
|
| 125 | + return ($this->add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0]; |
|
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | } |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | * At this stage no usable id_candidate has been detected. |
| 132 | 132 | */ |
| 133 | 133 | if ($this->fail_if_empty) { |
| 134 | - throw new Error\Exception('This service needs at least one of the following ' . |
|
| 135 | - 'attributes to identity users: ' . implode(', ', $this->candidates) . '. Unfortunately not ' . |
|
| 136 | - 'one of them was detected. Please ask your institution administrator to release one of ' . |
|
| 134 | + throw new Error\Exception('This service needs at least one of the following '. |
|
| 135 | + 'attributes to identity users: '.implode(', ', $this->candidates).'. Unfortunately not '. |
|
| 136 | + 'one of them was detected. Please ask your institution administrator to release one of '. |
|
| 137 | 137 | 'them, or try using another identity provider.'); |
| 138 | 138 | } else { |
| 139 | 139 | /** |