diff --git a/modules/saml/hooks/hook_metadata_hosted.php b/modules/saml/hooks/hook_metadata_hosted.php
index b2babd05683b57800c48daf5fecf9012d4a60863..510a8133d9f270e876f25570ed2310009836746b 100644
--- a/modules/saml/hooks/hook_metadata_hosted.php
+++ b/modules/saml/hooks/hook_metadata_hosted.php
@@ -5,32 +5,31 @@
  *
  * @param array &$metadataHosted  The metadata links for hosted metadata on the frontpage.
  */
-function saml_hook_metadata_hosted(&$metadataHosted) {
-	assert(is_array($metadataHosted));
-
-	$sources = SimpleSAML_Auth_Source::getSourcesOfType('saml:SP');
-
-	foreach ($sources as $source) {
-
-		$metadata = $source->getMetadata();
-
-		$name = $metadata->getValue('name', NULL);
-		if ($name === NULL) {
-			$name = $metadata->getValue('OrganizationDisplayName', NULL);
-		}
-		if ($name === NULL) {
-			$name = $source->getAuthID();
-		}
-
-		$md = array(
-			'entityid' => $source->getEntityId(),
-			'metadata-index' => $source->getEntityId(),
-			'metadata-set' => 'saml20-sp-hosted',
-			'metadata-url' => $source->getMetadataURL() . '?output=xhtml',
-			'name' => $name,
-		);
-
-		$metadataHosted[] = $md;
-	}
 
+function saml_hook_metadata_hosted(&$metadataHosted) {
+    assert(is_array($metadataHosted));
+
+    $sources = SimpleSAML_Auth_Source::getSourcesOfType('saml:SP');
+
+    foreach ($sources as $source) {
+        $metadata = $source->getMetadata();
+
+        $name = $metadata->getValue('name', null);
+        if ($name === null) {
+            $name = $metadata->getValue('OrganizationDisplayName', null);
+        }
+        if ($name === null) {
+            $name = $source->getAuthID();
+        }
+
+        $md = array(
+            'entityid' => $source->getEntityId(),
+            'metadata-index' => $source->getEntityId(),
+            'metadata-set' => 'saml20-sp-hosted',
+            'metadata-url' => $source->getMetadataURL() . '?output=xhtml',
+            'name' => $name,
+        );
+
+        $metadataHosted[] = $md;
+    }
 }