@@ -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); |
@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | foreach ($this->candidates as $idCandidate) { |
| 114 | 114 | if (isset($attributes[$idCandidate][0])) { |
| 115 | 115 | if (($this->add_authority) && (isset($state['saml:AuthenticatingAuthority'][0]))) { |
| 116 | - return ($this->add_candidate ? $idCandidate . ':' : '') . $attributes[$idCandidate][0] . '!' . |
|
| 116 | + return ($this->add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0].'!'. |
|
| 117 | 117 | $state['saml:AuthenticatingAuthority'][0]; |
| 118 | 118 | } else { |
| 119 | - return ($this->add_candidate ? $idCandidate . ':' : '') . $attributes[$idCandidate][0]; |
|
| 119 | + return ($this->add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0]; |
|
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | } |
@@ -125,9 +125,9 @@ discard block |
||
| 125 | 125 | * At this stage no usable id_candidate has been detected. |
| 126 | 126 | */ |
| 127 | 127 | if ($this->fail_if_empty) { |
| 128 | - throw new Error\Exception('This service needs at least one of the following ' . |
|
| 129 | - 'attributes to identity users: ' . implode(', ', $this->candidates) . '. Unfortunately not ' . |
|
| 130 | - 'one of them was detected. Please ask your institution administrator to release one of ' . |
|
| 128 | + throw new Error\Exception('This service needs at least one of the following '. |
|
| 129 | + 'attributes to identity users: '.implode(', ', $this->candidates).'. Unfortunately not '. |
|
| 130 | + 'one of them was detected. Please ask your institution administrator to release one of '. |
|
| 131 | 131 | 'them, or try using another identity provider.'); |
| 132 | 132 | } else { |
| 133 | 133 | /** |