|
5 | 5 | namespace SimpleSAML\Module\admin\Controller; |
6 | 6 |
|
7 | 7 | use Exception; |
| 8 | +use SimpleSAML\Assert\Assert; |
8 | 9 | use SimpleSAML\Auth; |
9 | 10 | use SimpleSAML\Configuration; |
10 | | -use SimpleSAML\Logger; |
11 | | -use SimpleSAML\Module; |
12 | | -use SimpleSAML\Utils; |
13 | | -use SimpleSAML\Assert\Assert; |
14 | 11 | use SimpleSAML\Locale\Translate; |
| 12 | +use SimpleSAML\Logger; |
15 | 13 | use SimpleSAML\Metadata\MetaDataStorageHandler; |
16 | 14 | use SimpleSAML\Metadata\SAMLBuilder; |
17 | 15 | use SimpleSAML\Metadata\SAMLParser; |
18 | 16 | use SimpleSAML\Metadata\Signer; |
| 17 | +use SimpleSAML\Module; |
19 | 18 | use SimpleSAML\Module\adfs\IdP\ADFS as ADFS_IdP; |
20 | 19 | use SimpleSAML\Module\saml\IdP\SAML2 as SAML2_IdP; |
21 | 20 | use SimpleSAML\SAML2\Constants as C; |
22 | 21 | use SimpleSAML\SAML2\Exception\ArrayValidationException; |
23 | 22 | use SimpleSAML\SAML2\XML\md\ContactPerson; |
| 23 | +use SimpleSAML\Utils; |
24 | 24 | use SimpleSAML\XHTML\Template; |
25 | 25 | use Symfony\Component\HttpFoundation\Request; |
26 | 26 | use Symfony\Component\HttpFoundation\Response; |
@@ -73,7 +73,7 @@ class Federation |
73 | 73 | * FederationController constructor. |
74 | 74 | * |
75 | 75 | * @param \SimpleSAML\Configuration $config The configuration to use. |
76 | | - * @throws Exception |
| 76 | + * @throws \Exception |
77 | 77 | */ |
78 | 78 | public function __construct( |
79 | 79 | protected Configuration $config, |
@@ -221,7 +221,11 @@ private function getHostedIdP(): array |
221 | 221 | $selfHost = $httpUtils->getSelfHostWithPath(); |
222 | 222 | foreach ($idps as $index => $idp) { |
223 | 223 | if (isset($idp['host']) && $idp['host'] !== '__DEFAULT__') { |
224 | | - $mdHostBase = str_replace('://' . $selfHost . '/', '://' . $idp['host'] . '/', $metadataBase); |
| 224 | + $mdHostBase = str_replace( |
| 225 | + '://' . $selfHost . '/', |
| 226 | + '://' . $idp['host'] . '/', |
| 227 | + $metadataBase, |
| 228 | + ); |
225 | 229 | } else { |
226 | 230 | $mdHostBase = $metadataBase; |
227 | 231 | } |
|
0 commit comments