@@ -72,7 +72,7 @@ class Federation
7272 * @param \SimpleSAML\Configuration $config The configuration to use.
7373 */
7474 public function __construct (
75- protected Configuration $ config
75+ protected Configuration $ config,
7676 ) {
7777 $ this ->menu = new Menu ();
7878 $ this ->mdHandler = MetaDataStorageHandler::getMetadataHandler ();
@@ -225,7 +225,7 @@ private function getHostedIdP(): array
225225 $ saml2entities ['saml20-idp ' ] = $ this ->mdHandler ->getMetaDataCurrent ('saml20-idp-hosted ' );
226226 $ saml2entities ['saml20-idp ' ]['url ' ] = $ metadataBase ;
227227 $ saml2entities ['saml20-idp ' ]['metadata_array ' ] = SAML2_IdP::getHostedMetadata (
228- $ this ->mdHandler ->getMetaDataCurrentEntityID ('saml20-idp-hosted ' )
228+ $ this ->mdHandler ->getMetaDataCurrentEntityID ('saml20-idp-hosted ' ),
229229 );
230230 }
231231
@@ -234,7 +234,7 @@ private function getHostedIdP(): array
234234 Assert::maxLength (
235235 $ entity ['entityid ' ],
236236 C::SAML2INT_ENTITYID_MAX_LENGTH ,
237- sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH )
237+ sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH ),
238238 );
239239
240240 $ builder = new SAMLBuilder ($ entity ['entityid ' ]);
@@ -244,7 +244,7 @@ private function getHostedIdP(): array
244244 $ entity ['metadata ' ] = Signer::sign (
245245 $ builder ->getEntityDescriptorText (),
246246 $ entity ['metadata_array ' ],
247- 'SAML 2 IdP '
247+ 'SAML 2 IdP ' ,
248248 );
249249 $ entities [$ index ] = $ entity ;
250250 }
@@ -271,7 +271,7 @@ private function getHostedIdP(): array
271271 $ adfsentities ['adfs-idp ' ] = $ this ->mdHandler ->getMetaDataCurrent ('adfs-idp-hosted ' );
272272 $ adfsentities ['adfs-idp ' ]['url ' ] = Module::getModuleURL ('adfs/idp/metadata.php ' );
273273 $ adfsentities ['adfs-idp ' ]['metadata_array ' ] = ADFS_IdP::getHostedMetadata (
274- $ this ->mdHandler ->getMetaDataCurrentEntityID ('adfs-idp-hosted ' )
274+ $ this ->mdHandler ->getMetaDataCurrentEntityID ('adfs-idp-hosted ' ),
275275 );
276276 }
277277
@@ -280,7 +280,7 @@ private function getHostedIdP(): array
280280 Assert::maxLength (
281281 $ entity ['entityid ' ],
282282 C::SAML2INT_ENTITYID_MAX_LENGTH ,
283- sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH )
283+ sprintf ('The entityID cannot be longer than %d characters. ' , C::SAML2INT_ENTITYID_MAX_LENGTH ),
284284 );
285285
286286 $ builder = new SAMLBuilder ($ entity ['entityid ' ]);
@@ -295,7 +295,7 @@ private function getHostedIdP(): array
295295 $ entity ['metadata ' ] = Signer::sign (
296296 $ builder ->getEntityDescriptorText (),
297297 $ entity ['metadata_array ' ],
298- 'ADFS IdP '
298+ 'ADFS IdP ' ,
299299 );
300300 $ entities [$ index ] = $ entity ;
301301 }
@@ -364,8 +364,8 @@ private function getHostedSP(): array
364364 'name ' ,
365365 $ source ->getMetadata ()->getOptionalLocalizedString (
366366 'OrganizationDisplayName ' ,
367- ['en ' => $ source ->getAuthId ()]
368- )
367+ ['en ' => $ source ->getAuthId ()],
368+ ),
369369 );
370370
371371 $ builder = new SAMLBuilder ($ source ->getEntityId ());
@@ -522,7 +522,7 @@ public function downloadCert(Request $request): Response
522522 $ response = new Response ($ certInfo ['PEM ' ]);
523523 $ disposition = $ response ->headers ->makeDisposition (
524524 ResponseHeaderBag::DISPOSITION_ATTACHMENT ,
525- 'cert.pem '
525+ 'cert.pem ' ,
526526 );
527527
528528 $ response ->headers ->set ('Content-Disposition ' , $ disposition );
0 commit comments