From e978985237acd5a7861e8534ac03e4af0dae4a51 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Sun, 30 Aug 2015 18:58:34 +0200
Subject: [PATCH] Reformat sspmod_saml_Auth_Process_TransientNameID and fix
 some phpdoc comments.

---
 .../saml/lib/Auth/Process/TransientNameID.php | 51 ++++++++++---------
 1 file changed, 27 insertions(+), 24 deletions(-)

diff --git a/modules/saml/lib/Auth/Process/TransientNameID.php b/modules/saml/lib/Auth/Process/TransientNameID.php
index b432ed35a..d3f5c22ed 100644
--- a/modules/saml/lib/Auth/Process/TransientNameID.php
+++ b/modules/saml/lib/Auth/Process/TransientNameID.php
@@ -1,34 +1,37 @@
 <?php
 
+
 /**
- * Authproc filter to generate a transient NameID.
+ * Authentication processing filter to generate a transient NameID.
  *
- * @package simpleSAMLphp
+ * @package SimpleSAMLphp
  */
-class sspmod_saml_Auth_Process_TransientNameID extends sspmod_saml_BaseNameIDGenerator {
-
-	/**
-	 * Initialize this filter, parse configuration
-	 *
-	 * @param array $config  Configuration information about this filter.
-	 * @param mixed $reserved  For future use.
-	 */
-	public function __construct($config, $reserved) {
-		parent::__construct($config, $reserved);
-		assert('is_array($config)');
-
-		$this->format = SAML2_Const::NAMEID_TRANSIENT;
-	}
+class sspmod_saml_Auth_Process_TransientNameID extends sspmod_saml_BaseNameIDGenerator
+{
 
+    /**
+     * Initialize this filter, parse configuration
+     *
+     * @param array $config Configuration information about this filter.
+     * @param mixed $reserved For future use.
+     */
+    public function __construct($config, $reserved)
+    {
+        parent::__construct($config, $reserved);
+        assert('is_array($config)');
 
-	/**
-	 * Get the NameID value.
-	 *
-	 * @return string|NULL  The NameID value.
-	 */
-	protected function getValue(array &$state) {
+        $this->format = SAML2_Const::NAMEID_TRANSIENT;
+    }
 
-		return SimpleSAML\Utils\Random::generateID();
-	}
 
+    /**
+     * Get the NameID value.
+     *
+     * @param array $state The state array.
+     * @return string|null The NameID value.
+     */
+    protected function getValue(array &$state)
+    {
+        return SimpleSAML\Utils\Random::generateID();
+    }
 }
-- 
GitLab