diff --git a/lib/SimpleSAML/Utils/XML.php b/lib/SimpleSAML/Utils/XML.php
index e15b9084cd21128dc0a2ebd399e6b62ba1fa438f..01536ee8c4cdc183a895423e2673518015c2edf7 100644
--- a/lib/SimpleSAML/Utils/XML.php
+++ b/lib/SimpleSAML/Utils/XML.php
@@ -102,11 +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
             return;
diff --git a/modules/admin/lib/Controller/Federation.php b/modules/admin/lib/Controller/Federation.php
index 81bb898ac5229f8e1b58c1f80f88cb17a0b171d2..1b97aae103bbbd94b21cd1451bb756c42019f355 100644
--- a/modules/admin/lib/Controller/Federation.php
+++ b/modules/admin/lib/Controller/Federation.php
@@ -121,7 +121,8 @@ class Federation
         $entries = [
             'hosted' => array_merge($hostedSPs, $hostedIdPs),
             '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
                     ? $this->mdHandler->getList('saml20-sp-remote', true) : [],
                 'adfs-sp-remote' => ($this->config->getBoolean('enable.adfs-idp', false) === true) &&