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

Fix for PHP code sniffer, no functional changes

parent 94a1b787
No related branches found
No related tags found
No related merge requests found
...@@ -102,11 +102,10 @@ class XML ...@@ -102,11 +102,10 @@ class XML
// see if debugging is enabled for SAML messages // see if debugging is enabled for SAML messages
$debug = Configuration::getInstance()->getArray('debug', ['saml' => false]); $debug = Configuration::getInstance()->getArray('debug', ['saml' => false]);
if ( if (!(
!(in_array('saml', $debug, true) // implicitly enabled in_array('saml', $debug, true) || // implicitly enabled
|| (array_key_exists('saml', $debug) (array_key_exists('saml', $debug) && $debug['saml'] === true) // explicitly enabled
&& $debug['saml'] === true) // explicitly enabled )
)
) { ) {
// debugging messages is disabled // debugging messages is disabled
return; return;
......
...@@ -121,7 +121,8 @@ class Federation ...@@ -121,7 +121,8 @@ class Federation
$entries = [ $entries = [
'hosted' => array_merge($hostedSPs, $hostedIdPs), 'hosted' => array_merge($hostedSPs, $hostedIdPs),
'remote' => [ 'remote' => [
'saml20-idp-remote' => !empty($hostedSPs) ? $this->mdHandler->getList('saml20-idp-remote', true) : [], 'saml20-idp-remote' => !empty($hostedSPs)
? $this->mdHandler->getList('saml20-idp-remote', true) : [],
'saml20-sp-remote' => $this->config->getBoolean('enable.saml20-idp', false) === true 'saml20-sp-remote' => $this->config->getBoolean('enable.saml20-idp', false) === true
? $this->mdHandler->getList('saml20-sp-remote', true) : [], ? $this->mdHandler->getList('saml20-sp-remote', true) : [],
'adfs-sp-remote' => ($this->config->getBoolean('enable.adfs-idp', false) === true) && 'adfs-sp-remote' => ($this->config->getBoolean('enable.adfs-idp', false) === true) &&
......
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