@@ -66,7 +66,7 @@ class Federation
6666 * @param \SimpleSAML\Configuration $config The configuration to use.
6767 */
6868 public function __construct (
69- protected Configuration $ config
69+ protected Configuration $ config,
7070 ) {
7171 $ this ->menu = new Menu ();
7272 $ this ->mdHandler = MetaDataStorageHandler::getMetadataHandler ($ config );
@@ -222,7 +222,7 @@ private function getHostedIdP(): array
222222 $ saml2entities ['saml20-idp ' ] = $ this ->mdHandler ->getMetaDataCurrent ('saml20-idp-hosted ' );
223223 $ saml2entities ['saml20-idp ' ]['url ' ] = $ metadataBase ;
224224 $ saml2entities ['saml20-idp ' ]['metadata_array ' ] = SAML2_IdP::getHostedMetadata (
225- $ this ->mdHandler ->getMetaDataCurrentEntityID ('saml20-idp-hosted ' )
225+ $ this ->mdHandler ->getMetaDataCurrentEntityID ('saml20-idp-hosted ' ),
226226 );
227227 }
228228
@@ -231,7 +231,7 @@ private function getHostedIdP(): array
231231 Assert::maxLength (
232232 $ entity ['entityid ' ],
233233 C::SAML2INT_ENTITYID_MAX_LENGTH ,
234- sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH )
234+ sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH ),
235235 );
236236
237237 $ builder = new SAMLBuilder ($ entity ['entityid ' ]);
@@ -241,7 +241,7 @@ private function getHostedIdP(): array
241241 $ entity ['metadata ' ] = Signer::sign (
242242 $ builder ->getEntityDescriptorText (),
243243 $ entity ['metadata_array ' ],
244- 'SAML 2 IdP '
244+ 'SAML 2 IdP ' ,
245245 );
246246 $ entities [$ index ] = $ entity ;
247247 }
@@ -268,7 +268,7 @@ private function getHostedIdP(): array
268268 $ adfsentities ['adfs-idp ' ] = $ this ->mdHandler ->getMetaDataCurrent ('adfs-idp-hosted ' );
269269 $ adfsentities ['adfs-idp ' ]['url ' ] = Module::getModuleURL ('adfs/idp/metadata.php ' );
270270 $ adfsentities ['adfs-idp ' ]['metadata_array ' ] = ADFS_IdP::getHostedMetadata (
271- $ this ->mdHandler ->getMetaDataCurrentEntityID ('adfs-idp-hosted ' )
271+ $ this ->mdHandler ->getMetaDataCurrentEntityID ('adfs-idp-hosted ' ),
272272 );
273273 }
274274
@@ -277,7 +277,7 @@ private function getHostedIdP(): array
277277 Assert::maxLength (
278278 $ entity ['entityid ' ],
279279 C::SAML2INT_ENTITYID_MAX_LENGTH ,
280- sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH )
280+ sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH ),
281281 );
282282
283283 $ builder = new SAMLBuilder ($ entity ['entityid ' ]);
@@ -298,7 +298,7 @@ private function getHostedIdP(): array
298298 $ entity ['metadata ' ] = Signer::sign (
299299 $ builder ->getEntityDescriptorText (),
300300 $ entity ['metadata_array ' ],
301- 'ADFS IdP '
301+ 'ADFS IdP ' ,
302302 );
303303 $ entities [$ index ] = $ entity ;
304304 }
@@ -358,8 +358,8 @@ private function getHostedSP(): array
358358 'name ' ,
359359 $ source ->getMetadata ()->getOptionalLocalizedString (
360360 'OrganizationDisplayName ' ,
361- ['en ' => $ source ->getAuthId ()]
362- )
361+ ['en ' => $ source ->getAuthId ()],
362+ ),
363363 );
364364
365365 $ builder = new SAMLBuilder ($ source ->getEntityId ());
@@ -523,7 +523,7 @@ public function downloadCert(Request $request): Response
523523 $ response = new Response ($ certInfo ['PEM ' ]);
524524 $ disposition = $ response ->headers ->makeDisposition (
525525 ResponseHeaderBag::DISPOSITION_ATTACHMENT ,
526- 'cert.pem '
526+ 'cert.pem ' ,
527527 );
528528
529529 $ response ->headers ->set ('Content-Disposition ' , $ disposition );
0 commit comments