From b182d8875341f39b0aa09e765a79c9fa4f9d9c74 Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Mon, 26 Apr 2010 20:59:47 +0000
Subject: [PATCH] small formatting change

---
 plugins/cas_auth_unl/actions/logout.php | 58 ++++++++++++-------------
 1 file changed, 27 insertions(+), 31 deletions(-)

diff --git a/plugins/cas_auth_unl/actions/logout.php b/plugins/cas_auth_unl/actions/logout.php
index ac179290..ec34fd40 100644
--- a/plugins/cas_auth_unl/actions/logout.php
+++ b/plugins/cas_auth_unl/actions/logout.php
@@ -1,36 +1,32 @@
 <?php
-
-    /**
-	 * Elgg logout action for use with UNL CAS
-	 * 
-	 * @package Elgg
-	 * @subpackage Core
-	 * @overwritten cas_auth_unl/actions/logout.php
-	 * @author Curverider Ltd
-	 * @link http://elgg.org/
-	 */    
+/**
+ * Elgg logout action for use with UNL CAS
+ * 
+ * @package Elgg
+ * @subpackage Core
+ * @overwritten cas_auth_unl/actions/logout.php
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */    
 	
-	// Save this session value since the next step wipes it out
-		$loggedInWithCas = $_SESSION['loggedInWithCas'];
+// Save this session value since the next step wipes it out
+$loggedInWithCas = $_SESSION['loggedInWithCas'];
 
-    // Log out
-        $result = logout();
+// Log out
+$result = logout();
             
-    // Set the system_message as appropriate
-        
-        if ($result) {
-            system_message(elgg_echo('logoutok'));
-        } else {
-            register_error(elgg_echo('logouterror'));
-        }
+// Set the system_message as appropriate      
+if ($result) {
+    system_message(elgg_echo('logoutok'));
+} else {
+    register_error(elgg_echo('logouterror'));
+}
 	
-    // We've destoyed all the Elgg session data, now do CAS logout if neccessary
-    // Due to problems getting the SimpleCAS logout to work, we're just forwarding to the right URL since
-    //   the Elgg logout function above took care of destroying the session, which is all the SimpleCAS logout 
-    //   was doing anyway.
-
-        if ($loggedInWithCas) { 
-        	global $CONFIG;
-        	forward('https://login.unl.edu/cas/logout?url='.$CONFIG->url);
-        }
-?>
\ No newline at end of file
+// We've destoyed all the Elgg session data, now do CAS logout if neccessary
+// Due to problems getting the SimpleCAS logout to work, we're just forwarding to the right URL since
+//   the Elgg logout function above took care of destroying the session, which is all the SimpleCAS logout 
+//   was doing anyway.
+if ($loggedInWithCas) { 
+    global $CONFIG;
+    forward('https://login.unl.edu/cas/logout?url='.$CONFIG->url);
+}
-- 
GitLab