From e5828dc6df6f7fc92eaacf63931a091faa954bd3 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Mon, 6 Aug 2018 11:54:36 +0200
Subject: [PATCH] Spaces / Braces

---
 modules/core/www/frontpage_federation.php | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/modules/core/www/frontpage_federation.php b/modules/core/www/frontpage_federation.php
index 1cf9dd566..7aa3d617f 100644
--- a/modules/core/www/frontpage_federation.php
+++ b/modules/core/www/frontpage_federation.php
@@ -26,7 +26,7 @@ if ($config->getBoolean('idpdisco.enableremember', false)) {
 
 
 $links_federation[] = array(
-    'href' => \SimpleSAML\Utils\HTTP::getBaseURL() . 'admin/metadata-converter.php',
+    'href' => \SimpleSAML\Utils\HTTP::getBaseURL().'admin/metadata-converter.php',
     'text' => '{core:frontpage:link_xmlconvert}',
 );
 
@@ -46,7 +46,7 @@ $metadataHosted = array();
 
 $metadata = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();
 
-$metaentries = array('hosted' => $metadataHosted, 'remote' => array() );
+$metaentries = array('hosted' => $metadataHosted, 'remote' => array());
 
 
 if ($isadmin) {
@@ -59,9 +59,10 @@ if ($config->getBoolean('enable.saml20-idp', false) === true) {
         $metaentries['hosted']['saml20-idp'] = $metadata->getMetaDataCurrent('saml20-idp-hosted');
         $metaentries['hosted']['saml20-idp']['metadata-url'] =
             $config->getBasePath().'saml2/idp/metadata.php?output=xhtml';
-        if ($isadmin)
+        if ($isadmin) {
             $metaentries['remote']['saml20-sp-remote'] = $metadata->getList('saml20-sp-remote');
-    } catch(Exception $e) {
+        }
+    } catch (Exception $e) {
         \SimpleSAML\Logger::error('Federation: Error loading saml20-idp: '.$e->getMessage());
     }
 }
@@ -70,9 +71,10 @@ if ($config->getBoolean('enable.shib13-idp', false) === true) {
         $metaentries['hosted']['shib13-idp'] = $metadata->getMetaDataCurrent('shib13-idp-hosted');
         $metaentries['hosted']['shib13-idp']['metadata-url'] =
             $config->getBasePath().'shib13/idp/metadata.php?output=xhtml';
-        if ($isadmin)
+        if ($isadmin) {
             $metaentries['remote']['shib13-sp-remote'] = $metadata->getList('shib13-sp-remote');
-    } catch(Exception $e) {
+        }
+    } catch (Exception $e) {
         \SimpleSAML\Logger::error('Federation: Error loading shib13-idp: ' . $e->getMessage());
     }
 }
@@ -83,9 +85,10 @@ if ($config->getBoolean('enable.adfs-idp', false) === true) {
             'adfs/idp/metadata.php',
             array('output' => 'xhtml')
         );
-        if ($isadmin)
+        if ($isadmin) {
             $metaentries['remote']['adfs-sp-remote'] = $metadata->getList('adfs-sp-remote');
-    } catch(Exception $e) {
+        }
+    } catch (Exception $e) {
         \SimpleSAML\Logger::error('Federation: Error loading adfs-idp: ' . $e->getMessage());
     }
 }
-- 
GitLab