Skip to content
Snippets Groups Projects
Commit 322ceb4d authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

PHP code sniffer fixes, no functional changes

parent 68ad0fac
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,10 @@ class XML
// see if debugging is enabled for SAML messages
$debug = Configuration::getInstance()->getArray('debug', ['saml' => false]);
if (!(
in_array('saml', $debug, true) || // implicitly enabled
(array_key_exists('saml', $debug) && $debug['saml'] === true) // explicitly enabled
if (
!(
in_array('saml', $debug, true) || // implicitly enabled
(array_key_exists('saml', $debug) && $debug['saml'] === true) // explicitly enabled
)
) {
// debugging messages is disabled
......
......@@ -236,7 +236,8 @@ class Federation
$adfsentities = [];
if (count($idps) > 1) {
foreach ($idps as $index => $idp) {
$idp['url'] = Module::getModuleURL('adfs/idp/metadata/?idpentityid=' . urlencode($idp['entityid']));
$idp['url'] = Module::getModuleURL('adfs/idp/metadata/?idpentityid=' .
urlencode($idp['entityid']));
$idp['metadata-set'] = 'adfs-idp-hosted';
$idp['metadata-index'] = $index;
$idp['metadata_array'] = ADFS_IdP::getHostedMetadata($idp['entityid']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment