[Fusionforge-commits] r8489 - in trunk/gforge/common: include pm survey

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Dec 9 21:15:43 CET 2009


Author: aljeux
Date: 2009-12-09 21:15:42 +0100 (Wed, 09 Dec 2009)
New Revision: 8489

Modified:
   trunk/gforge/common/include/Group.class.php
   trunk/gforge/common/pm/ProjectTask.class.php
   trunk/gforge/common/survey/Survey.class.php
   trunk/gforge/common/survey/SurveyResponseFactory.class.php
Log:
Minor: mostly indent fixes

Modified: trunk/gforge/common/include/Group.class.php
===================================================================
--- trunk/gforge/common/include/Group.class.php	2009-12-09 20:15:36 UTC (rev 8488)
+++ trunk/gforge/common/include/Group.class.php	2009-12-09 20:15:42 UTC (rev 8489)
@@ -1601,7 +1601,7 @@
 	/**
 	 *	addUser - controls adding a user to a group.
 	 *  
-	 *      @param	string	Unix name of the user to add OR integer user_id.
+	 *  @param	string	Unix name of the user to add OR integer user_id.
 	 *	@param	int	The role_id this user should have.
 	 *	@return	boolean	success.
 	 *	@access public
@@ -1951,16 +1951,16 @@
 	 *	@access private
 	 */
 	function activateUsers() {
-		
+
 		/*
-		 Activate member(s) of the project
+			Activate member(s) of the project
 		*/
 		
 		$member_res = db_query_params ('SELECT user_id, role_id FROM user_group	WHERE group_id=$1',
 					       array ($this->getID())) ;
 		
 		$rows = db_numrows($member_res);
-		
+
 		if ($rows > 0) {
 
 			for ($i=0; $i<$rows; $i++) {

Modified: trunk/gforge/common/pm/ProjectTask.class.php
===================================================================
--- trunk/gforge/common/pm/ProjectTask.class.php	2009-12-09 20:15:36 UTC (rev 8488)
+++ trunk/gforge/common/pm/ProjectTask.class.php	2009-12-09 20:15:42 UTC (rev 8489)
@@ -1054,7 +1054,7 @@
 		$old_assigned = &$this->getAssignedTo();
 		$diff_assigned_array=array_diff($old_assigned, $assigned_arr);
 		if (count($diff_assigned_array)>0) { 
-				for ($tmp=0;$tmp<count($old_assigned);$tmp++) { 
+				for ($tmp=0;$tmp<count($old_assigned);$tmp++) {
 					$this->addHistory('assigned_to_id',$old_assigned[$tmp]);
 				}
 				$has_changes = true;

Modified: trunk/gforge/common/survey/Survey.class.php
===================================================================
--- trunk/gforge/common/survey/Survey.class.php	2009-12-09 20:15:36 UTC (rev 8488)
+++ trunk/gforge/common/survey/Survey.class.php	2009-12-09 20:15:42 UTC (rev 8489)
@@ -426,7 +426,7 @@
 		} else {
 			$ret = $this->all_question_array;
 		}
-				
+		
 		return $ret;
 	}
 

Modified: trunk/gforge/common/survey/SurveyResponseFactory.class.php
===================================================================
--- trunk/gforge/common/survey/SurveyResponseFactory.class.php	2009-12-09 20:15:36 UTC (rev 8488)
+++ trunk/gforge/common/survey/SurveyResponseFactory.class.php	2009-12-09 20:15:42 UTC (rev 8489)
@@ -133,7 +133,7 @@
 		$group_id = $group->GetID();
 		$survey = $this->getSurvey();
 		$survey_id = $survey->GetID();
-		$question = $this->getQUestion();
+		$question = $this->getQuestion();
 		$question_id = $question->GetID();
 		
 		$result = db_query_params ('SELECT * FROM survey_responses WHERE survey_id=$1 AND question_id=$2 AND group_id=$3 ORDER BY post_date DESC',




More information about the Fusionforge-commits mailing list