@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | try { |
77 | - $idpentityid = $request->query0>get('idpentityid') ?: $this->metadata->getMetaDataCurrentEntityID('adfs-idp-hosted'); |
|
77 | + $idpentityid = $request->query0 > get('idpentityid') ?: $this->metadata->getMetaDataCurrentEntityID('adfs-idp-hosted'); |
|
78 | 78 | $idpmeta = $this->metadata->getMetaDataConfig($idpentityid, 'adfs-idp-hosted'); |
79 | 79 | |
80 | 80 | $availableCerts = []; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ]; |
118 | 118 | } |
119 | 119 | |
120 | - $adfs_service_location = Module::getModuleURL('adfs') . '/idp/prp.php'; |
|
120 | + $adfs_service_location = Module::getModuleURL('adfs').'/idp/prp.php'; |
|
121 | 121 | $metaArray = [ |
122 | 122 | 'metadata-set' => 'adfs-idp-remote', |
123 | 123 | 'entityid' => $idpentityid, |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $metaArray['RegistrationInfo'] = $idpmeta->getArray('RegistrationInfo'); |
180 | 180 | } |
181 | 181 | |
182 | - $metaflat = '$metadata[' . var_export($idpentityid, true) . '] = ' . var_export($metaArray, true) . ';'; |
|
182 | + $metaflat = '$metadata['.var_export($idpentityid, true).'] = '.var_export($metaArray, true).';'; |
|
183 | 183 | |
184 | 184 | $metaBuilder = new Metadata\SAMLBuilder($idpentityid); |
185 | 185 | $metaBuilder->addSecurityTokenServiceType($metaArray); |
@@ -209,8 +209,8 @@ discard block |
||
209 | 209 | $certdata = []; |
210 | 210 | foreach (array_keys($availableCerts) as $availableCert) { |
211 | 211 | $certdata[$availableCert]['name'] = $availableCert; |
212 | - $certdata[$availableCert]['url'] = Module::getModuleURL('saml/idp/certs.php') . |
|
213 | - '/' . $availableCert; |
|
212 | + $certdata[$availableCert]['url'] = Module::getModuleURL('saml/idp/certs.php'). |
|
213 | + '/'.$availableCert; |
|
214 | 214 | |
215 | 215 | $certdata[$availableCert]['comment'] = ''; |
216 | 216 | } |
@@ -252,13 +252,13 @@ discard block |
||
252 | 252 | Logger::info('ADFS - IdP.prp: Accessing ADFS IdP endpoint prp'); |
253 | 253 | |
254 | 254 | $idpEntityId = $this->metadata->getMetaDataCurrentEntityID('adfs-idp-hosted'); |
255 | - $idp = IdP::getById('adfs:' . $idpEntityId); |
|
255 | + $idp = IdP::getById('adfs:'.$idpEntityId); |
|
256 | 256 | |
257 | 257 | if ($request->query->has('wa')) { |
258 | 258 | $wa = $request->query->get('wa'); |
259 | 259 | if ($wa === 'wsignout1.0') { |
260 | 260 | return new StreamedResponse( |
261 | - function () use ($idp) { |
|
261 | + function() use ($idp) { |
|
262 | 262 | ADFS_IDP::receiveLogoutMessage($idp); |
263 | 263 | } |
264 | 264 | ); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | $logoutError = null; // null on success, or an instance of a \SimpleSAML\Error\Exception on failure. |
274 | 274 | |
275 | 275 | return new StreamedResponse( |
276 | - function () use ($idp, /** @scrutinizer ignore-type */ $assocId, $relayState, $logoutError) { |
|
276 | + function() use ($idp, /** @scrutinizer ignore-type */ $assocId, $relayState, $logoutError) { |
|
277 | 277 | $idp->handleLogoutResponse($assocId, $relayState, $logoutError); |
278 | 278 | } |
279 | 279 | ); |