[Fusionforge-commits] FusionForge branch master updated. v6.0.3-374-g2b9dd4f

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Mon Feb 29 15:13:19 CET 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  2b9dd4fae9bf8a7b339cd9d1f7febed715150662 (commit)
      from  93f35afee86985f1624254bc9c81d49543e08dec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=2b9dd4fae9bf8a7b339cd9d1f7febed715150662

commit 2b9dd4fae9bf8a7b339cd9d1f7febed715150662
Author: Marc-Etienne Vargenau <Marc-Etienne.Vargenau at alcatel-lucent.com>
Date:   Mon Feb 29 15:13:13 2016 +0100

    Whitespace only

diff --git a/src/plugins/soapadmin/www/coreapi/coreapiservice.php b/src/plugins/soapadmin/www/coreapi/coreapiservice.php
index 3bfe884..764c0e3 100644
--- a/src/plugins/soapadmin/www/coreapi/coreapiservice.php
+++ b/src/plugins/soapadmin/www/coreapi/coreapiservice.php
@@ -145,7 +145,7 @@ class CoreApiService {
 		$grps = group_get_objects($group_ids);
 		if (!$grps) {
 			$this->logger->debug("Could Not Get Groups by Id");
-			return new soap_fault ('2001','group','Could Not Get Groups by Id'.$inputArgs,$feedback);
+			return new soap_fault('2001','group','Could Not Get Groups by Id'.$inputArgs,$feedback);
 		}
 
 		$response = new getGroupsResponse_soap();
diff --git a/src/www/scm/admin/index.php b/src/www/scm/admin/index.php
index 33a4d0a..01f9211 100644
--- a/src/www/scm/admin/index.php
+++ b/src/www/scm/admin/index.php
@@ -114,7 +114,6 @@ if (getStringFromRequest('create_repository') && getStringFromRequest('submit'))
 		}
 	}
 
-
 	$SCMFactory = new SCMFactory();
 	$scm_plugins = $SCMFactory->getSCMs();
 
diff --git a/src/www/search/include/SearchManager.class.php b/src/www/search/include/SearchManager.class.php
index a41a509..966ebc3 100644
--- a/src/www/search/include/SearchManager.class.php
+++ b/src/www/search/include/SearchManager.class.php
@@ -74,9 +74,9 @@ class SearchManager {
 
 	function & getAvailableSearchEngines($format = SEARCH__OUTPUT_HTML) {
 		$availableSearchEngines = array();
-		if(isset($this->searchEngines[$format])) {
-			foreach($this->searchEngines[$format] AS $type => $searchEngine) {
-				if($searchEngine->isAvailable($this->parametersValues)) {
+		if (isset($this->searchEngines[$format])) {
+			foreach ($this->searchEngines[$format] AS $type => $searchEngine) {
+				if ($searchEngine->isAvailable($this->parametersValues)) {
 					$availableSearchEngines[] = $searchEngine;
 				}
 			}
diff --git a/src/www/soap/common/group.php b/src/www/soap/common/group.php
index b49ee0c..1141890 100644
--- a/src/www/soap/common/group.php
+++ b/src/www/soap/common/group.php
@@ -338,7 +338,7 @@ function &getGroups($session_ser,$group_ids) {
 
 	$grps = group_get_objects($group_ids);
 	if (!$grps) {
-		return new soap_fault ('2001','group','Could Not Get Projects by Id'.$inputArgs,$feedback);
+		return new soap_fault('2001','group','Could Not Get Projects by Id'.$inputArgs,$feedback);
 	}
 
 	return groups_to_soap($grps);
@@ -348,7 +348,7 @@ function &getGroupsByName($session_ser,$group_names) {
 	session_continue($session_ser);
 	$grps = group_get_objects_by_name($group_names);
 	if (!$grps) {
-		return new soap_fault ('2002','group','Could Not Get Projects by Name','Could Not Get Projects by Name');
+		return new soap_fault('2002','group','Could Not Get Projects by Name','Could Not Get Projects by Name');
 	}
 
 	return groups_to_soap($grps);
@@ -361,7 +361,7 @@ function &getPublicProjectNames($session_ser) {
 	$result = $forge->getPublicProjectNames();
 	if ($forge->isError()) {
 		$errMsg = 'Could Not Get Public Projects Names: '.$forge->getErrorMessage();
-		return new soap_fault ('2003','group',$errMsg,$errMsg);
+		return new soap_fault('2003','group',$errMsg,$errMsg);
 	}
 	return $result;
 }
@@ -374,7 +374,7 @@ function getGroupByStatus($session_ser, $status) {
 	$grps = group_get_objects(util_result_column_to_array($res,0));
 
 	if ($grps < 0) {
-		return new soap_fault ('2004','group','Could Not Get Projects by Status','Could Not Get Projects by Status');
+		return new soap_fault('2004','group','Could Not Get Projects by Status','Could Not Get Projects by Status');
 	}
 
 	return groups_to_soap($grps);
@@ -388,7 +388,7 @@ function approveGroup($session_ser, $group_id) {
 
 	if (!$result) {
 		$errMsg = 'Could Not Approve The Project: '.$group->getErrorMessage();
-		return new soap_fault ('2005','group',$errMsg,$errMsg);
+		return new soap_fault('2005','group',$errMsg,$errMsg);
 	}
 
 	return $result;
@@ -403,7 +403,7 @@ function addGroup($session_ser, $group_name, $unix_name, $description, $purpose,
 
 	if (!$result){
 		$errMsg = 'Could Not Add A New Project: '.$group->getErrorMessage();
-		return new soap_fault ('2006','group',$errMsg,$errMsg);
+		return new soap_fault('2006','group',$errMsg,$errMsg);
 	}
 	return $result;
 }
@@ -431,7 +431,7 @@ function updateGroup($session_ser, $group_id, $is_public, $is_template, $status,
 
 	if ($error_msg){
 		$errMsg = 'Could Not Update A Project: '.$error_msg;
-		return new soap_fault ('2007','group',$errMsg,$errMsg);
+		return new soap_fault('2007','group',$errMsg,$errMsg);
 	}
 	return true;
 }
@@ -468,7 +468,7 @@ function updateGroup2($session_ser, $group_id, $form_group_name, $form_homepage,
 
 	if (!$res) {
 		$errMsg = 'Could Not Update A Project: '.$group->getErrorMessage();
-		return new soap_fault ('2007','group',$errMsg,$errMsg);
+		return new soap_fault('2007','group',$errMsg,$errMsg);
 	}
 
 	return true;
@@ -482,7 +482,7 @@ function deleteGroup($session_ser, $group_id) {
 	$result = $group->delete(true, true, true);
 	if (!$result){
 		$errMsg = 'Could Not Delete A Project: '.$group->getErrorMessage();
-		return new soap_fault ('2008','group',$errMsg,$errMsg);
+		return new soap_fault('2008','group',$errMsg,$errMsg);
 	}
 	return $result;
 }
@@ -493,7 +493,7 @@ function addUserToGroup ($session_ser,$user_unix_name, $group_id, $role_id){
 
 	$user_object = user_get_object_by_name($user_unix_name);
 	if ($user_object == false) {
-		return new soap_fault ('addUserToGroup','Could Not Get User','Could Not Get User');
+		return new soap_fault('addUserToGroup','Could Not Get User','Could Not Get User');
 	}
 	$user_id = $user_object->getID();
 
@@ -501,14 +501,14 @@ function addUserToGroup ($session_ser,$user_unix_name, $group_id, $role_id){
 
 	if (!$group || !is_object($group)) {
     		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('2004','group',$errMsg,$errMsg);
+		return new soap_fault('2004','group',$errMsg,$errMsg);
 	} elseif ($group->isError()) {
 		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('2004','group',$errMsg,$errMsg);
+		return new soap_fault('2004','group',$errMsg,$errMsg);
 	}
 
 	if (!$group->addUser($user_unix_name,$role_id)) {
-		return new soap_fault ('addUserToGroup',$group->getErrorMessage(),$group->getErrorMessage());
+		return new soap_fault('addUserToGroup',$group->getErrorMessage(),$group->getErrorMessage());
 	} else {
 		//if the user have requested to join this group
 		//we should remove him from the request list
@@ -528,7 +528,7 @@ function removeUserFromGroup ($session_ser,$user_id, $role_id){
 	$role = RBACEngine::getInstance()->getRoleById($role_id) ;
 
 	if (!$role->removeUser (user_get_object ($user_id))) {
-		return new soap_fault ('removeUserFromGroup',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('removeUserFromGroup',$role->getErrorMessage(),$role->getErrorMessage());
 	} else {
 		return true;
 	}
@@ -542,15 +542,15 @@ function &getGroupRoles($session_ser,$group_id) {
 
 	if (!$group || !is_object($group)) {
     		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('2005','group',$errMsg,$errMsg);
+		return new soap_fault('2005','group',$errMsg,$errMsg);
 	} elseif ($group->isError()) {
 		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('2005','group',$errMsg,$errMsg);
+		return new soap_fault('2005','group',$errMsg,$errMsg);
 	}
 	$roles = $group->getRoles();
 	if (!$roles) {
 		$errMsg = 'Could not get any roles';
-		return new soap_fault ('2005','group',$errMsg,$errMsg);
+		return new soap_fault('2005','group',$errMsg,$errMsg);
 	}
 
 	return roles_to_soap($roles,$group_id);
@@ -564,16 +564,16 @@ function getUserRolesForGroup($session_ser, $group_id, $user_id) {
 	$user = user_get_object($user_id);
 	if ($user == false) {
 		$errMsg = 'Could not get user: '.$user->getErrorMessage();
-		return new soap_fault ('2006','user',$errMsg,$errMsg);
+		return new soap_fault('2006','user',$errMsg,$errMsg);
 	}
 
 	$group = group_get_object($group_id);
 	if (!$group || !is_object($group)) {
     		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('2006','group',$errMsg,$errMsg);
+		return new soap_fault('2006','group',$errMsg,$errMsg);
 	} elseif ($group->isError()) {
 		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('2006','group',$errMsg,$errMsg);
+		return new soap_fault('2006','group',$errMsg,$errMsg);
 	}
 
 	foreach (RBACEngine::getInstance()->getAvailableRolesForUser ($user) as $role) {
@@ -596,9 +596,9 @@ function addGroupRole ($session_ser, $group_id, $role_name, $project_read, $proj
 	$role = new Role ($group) ;
 
 	if (!$role || !is_object($role)) {
-		return new soap_fault ('addGroupRole','Could Not Get GroupRole','Could Not Get GroupRole');
+		return new soap_fault('addGroupRole','Could Not Get GroupRole','Could Not Get GroupRole');
 	} elseif ($role->isError()) {
-		return new soap_fault ('addGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('addGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
 	}
 
 	$data = array ();
@@ -617,7 +617,7 @@ function addGroupRole ($session_ser, $group_id, $role_name, $project_read, $proj
 	$role_id = $role->create($role_name, $data);
 
 	if (!$role_id) {
-		return new soap_fault ('addGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('addGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
 	}
 
 	return $role_id;
@@ -632,9 +632,9 @@ function updateGroupRole ($session_ser, $group_id, $role_id, $role_name, $projec
 	$role = RBACEngine::getInstance()->getRoleById($role_id) ;
 
 	if (!$role || !is_object($role)) {
-		return new soap_fault ('updateGroupRole','Could Not Get Role','Could Not Get Role');
+		return new soap_fault('updateGroupRole','Could Not Get Role','Could Not Get Role');
 	} elseif ($role->isError()) {
-		return new soap_fault ('updateGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('updateGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
 	}
 
 	$data = array ();
@@ -653,7 +653,7 @@ function updateGroupRole ($session_ser, $group_id, $role_id, $role_name, $projec
 	$role_id = $role->update($role_name, $data, false);
 
 	if (!$role_id) {
-		return new soap_fault ('updateRole',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('updateRole',$role->getErrorMessage(),$role->getErrorMessage());
 	}
 
 	return $role_id;
@@ -668,21 +668,21 @@ function deleteGroupRole ($session_ser, $group_id, $role_id){
 	$role = RBACEngine::getInstance()->getRoleById($role_id) ;
 
 	if (!$role || !is_object($role)) {
-		return new soap_fault ('deleteGroupRole','Could Not Get Role','Could Not Get Role');
+		return new soap_fault('deleteGroupRole','Could Not Get Role','Could Not Get Role');
 	} elseif ($role->isError()) {
-		return new soap_fault ('deleteGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('deleteGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
 	}
 
 	if ($role->getHomeProject() == NULL) {
-		return new soap_fault ('deleteGroupRole', "You can't delete a global role from here.", "You can't delete a global role from here.");
+		return new soap_fault('deleteGroupRole', "You can't delete a global role from here.", "You can't delete a global role from here.");
 	}
 
 	if ($role->getHomeProject()->getID() != $group_id) {
-		return new soap_fault ('deleteGroupRole', "You can't delete a role belonging to another project.", "You can't delete a role belonging to another project.");
+		return new soap_fault('deleteGroupRole', "You can't delete a role belonging to another project.", "You can't delete a role belonging to another project.");
 	}
 
 	if (!$role->delete()) {
-		return new soap_fault ('deleteGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
+		return new soap_fault('deleteGroupRole',$role->getErrorMessage(),$role->getErrorMessage());
 	}else{
 		return true;
 	}
diff --git a/src/www/soap/common/user.php b/src/www/soap/common/user.php
index 0e9dd48..24db1de 100644
--- a/src/www/soap/common/user.php
+++ b/src/www/soap/common/user.php
@@ -189,7 +189,7 @@ function &getUsers($session_ser,$user_ids) {
 	continue_session($session_ser);
 	$users = user_get_objects($user_ids);
 	if (!$users) {
-		return new soap_fault ('3001','user','Could Not Get Users By Id','Could Not Get Users By Id');
+		return new soap_fault('3001','user','Could Not Get Users By Id','Could Not Get Users By Id');
 	}
 
 	return users_to_soap($users);
@@ -200,7 +200,7 @@ function getActiveUsers($session_ser) {
 	continue_session($session_ser);
 	$users = user_get_active_users();
 	if (!$users) {
-		return new soap_fault ('3001','getActiveUsers','Could Not Get Forge Users','Could Not Get Forge Users');
+		return new soap_fault('3001','getActiveUsers','Could Not Get Forge Users','Could Not Get Forge Users');
 	}
 
 	return users_to_soap($users);
@@ -214,15 +214,15 @@ function getGroupUsers($session_ser, $group_id) {
 
 	if (!$group || !is_object($group)) {
 		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('3002','getGroupUsers',$errMsg,$errMsg);
+		return new soap_fault('3002','getGroupUsers',$errMsg,$errMsg);
 	} elseif ($group->isError()) {
 		$errMsg = 'Could not get group: '.$group->getErrorMessage();
-		return new soap_fault ('3002','getGroupUsers',$errMsg,$errMsg);
+		return new soap_fault('3002','getGroupUsers',$errMsg,$errMsg);
 	}
 	$members = $group->getUsers();
 	if (!$members) {
 		$errMsg = 'Could not get users';
-		return new soap_fault ('3002','getGroupUsers',$errMsg,$errMsg);
+		return new soap_fault('3002','getGroupUsers',$errMsg,$errMsg);
 	}
 
 	return users_to_soap($members);
@@ -233,7 +233,7 @@ function getUsersByName($session_ser,$user_names) {
 	continue_session($session_ser);
 	$usrs = user_get_objects_by_name($user_names);
 	if (!$usrs) {
-		return new soap_fault ('3002','user','Could Not Get Users By Name','Could Not Get Users By Name');
+		return new soap_fault('3002','user','Could Not Get Users By Name','Could Not Get Users By Name');
 	}
 
 	return users_to_soap($usrs);
@@ -247,7 +247,7 @@ function addUser($unix_name,$firstname,$lastname,$password1,$password2,$email,
 	$register = $new_user->create($unix_name,$firstname,$lastname,$password1,$password2,$email,$mail_site,$mail_va,$language_id,$timezone,$jabber_address,$jabber_only,$theme_id,$unix_box,$address,$address2,$phone,$fax,$title,$ccode);
 
 	if (!$register){
-		return new soap_fault ('3004','user','Could Not Add A New User','Could Not Add A New User');
+		return new soap_fault('3004','user','Could Not Add A New User','Could Not Add A New User');
 	}
 
 	return $new_user->getID();
@@ -258,11 +258,11 @@ function updateUser ($session_ser,$user_id,$firstname,$lastname,$language_id,$ti
 	continue_session($session_ser);
 	$user = user_get_object($user_id);
 	if (!$user || !is_object($user)) {
-		return new soap_fault ('updateUser','Could Not Get User','Could Not Get User');
+		return new soap_fault('updateUser','Could Not Get User','Could Not Get User');
 	}
 
 	if (!$user->update($firstname,$lastname,$language_id,$timezone,$mail_site,$mail_va,$use_ratings,$jabber_address,$jabber_only,$theme_id,$address,$address2,$phone,$fax,$title,$ccode)){
-	return new soap_fault ('updateUser',$user->getErrorMessage(),$user->getErrorMessage());
+	return new soap_fault('updateUser',$user->getErrorMessage(),$user->getErrorMessage());
 	}else{
 		return $user->getID();
 	}
@@ -273,13 +273,13 @@ function deleteUser ($session_ser,$user_id){
 	continue_session($session_ser);
 	$user = user_get_object($user_id);
 	if (!$user || !is_object($user)) {
-		return new soap_fault ('deleteUser','Could Not Get User','Could Not Get User');
+		return new soap_fault('deleteUser','Could Not Get User','Could Not Get User');
 	}elseif ($user->isError()){
-		return new soap_fault ('deleteUser',$user->getErrorMessage(),$user->getErrorMessage());
+		return new soap_fault('deleteUser',$user->getErrorMessage(),$user->getErrorMessage());
 	}
 
 	if (!$user->delete(true)){
-		return new soap_fault ('deleteUser',$user->getErrorMessage(),$user->getErrorMessage());
+		return new soap_fault('deleteUser',$user->getErrorMessage(),$user->getErrorMessage());
 	}else{
 		return true;
 	}
@@ -290,13 +290,13 @@ function changeStatus ($session_ser,$user_id,$status){
 	continue_session($session_ser);
 	$user = user_get_object($user_id);
 	if (!$user || !is_object($user)) {
-		return new soap_fault ('changeStatus','Could Not Get User','Could Not Get User');
+		return new soap_fault('changeStatus','Could Not Get User','Could Not Get User');
 	}elseif ($user->isError()){
-		return new soap_fault ('changeStatus',$user->getErrorMessage(),$user->getErrorMessage());
+		return new soap_fault('changeStatus',$user->getErrorMessage(),$user->getErrorMessage());
 	}
 
 	if (!$user->setStatus($status)){
-		return new soap_fault ('changeStatus',$user->getErrorMessage(),$user->getErrorMessage());
+		return new soap_fault('changeStatus',$user->getErrorMessage(),$user->getErrorMessage());
 	}else{
 		return true;
 	}
@@ -307,13 +307,13 @@ function changePassword ($session_ser,$user_id,$password){
 	continue_session($session_ser);
 	$user = user_get_object($user_id);
 	if (!$user || !is_object($user)) {
-		return new soap_fault ('changePassword','Could Not Get User','Could Not Get User');
+		return new soap_fault('changePassword','Could Not Get User','Could Not Get User');
 	}elseif ($user->isError()){
-		return new soap_fault ('changePassword',$user->getErrorMessage(),$user->getErrorMessage());
+		return new soap_fault('changePassword',$user->getErrorMessage(),$user->getErrorMessage());
 	}
 
 	if (!$user->setPasswd($password)){
-		return new soap_fault ('changePassword',$user->getErrorMessage(),$user->getErrorMessage());
+		return new soap_fault('changePassword',$user->getErrorMessage(),$user->getErrorMessage());
 	}else{
 		return true;
 	}
@@ -324,7 +324,7 @@ function &userGetGroups($session_ser,$user_id) {
 	continue_session($session_ser);
 	$user = user_get_object($user_id);
 	if (!$user) {
-		return new soap_fault ('3003','user','Could Not Get Users Projects','Could Not Get Users Projects');
+		return new soap_fault('3003','user','Could Not Get Users Projects','Could Not Get Users Projects');
 	}
 	return groups_to_soap($user->getGroups());
 }
@@ -336,7 +336,7 @@ function &users_to_soap($users) {
 	$return = array();
 	for ($i=0; $i<count($users); $i++) {
 		if ($users[$i]->isError()) {
-			return new soap_fault ('','User to soap',$users[$i]->getErrorMessage(),$users[$i]->getErrorMessage());
+			return new soap_fault('','User to soap',$users[$i]->getErrorMessage(),$users[$i]->getErrorMessage());
 			//skip it if it had an error
 		} else {
 			//build an array of just the fields we want
diff --git a/src/www/soap/docman/docman.php b/src/www/soap/docman/docman.php
index f5a8460..0ec2a65 100644
--- a/src/www/soap/docman/docman.php
+++ b/src/www/soap/docman/docman.php
@@ -217,16 +217,16 @@ function &addDocument($session_ser,$group_id,$doc_group,$title,$description,$bas
 
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','addDocument','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','addDocument','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','addDocument',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','addDocument',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$d = new Document($g);
 	if (!$d || !is_object($d)) {
-		return new soap_fault ('','addDocument','Could Not create Document','Could Not create Document');
+		return new soap_fault('','addDocument','Could Not create Document','Could Not create Document');
 	} elseif ($d->isError()) {
-		return new soap_fault ('','addDocument',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','addDocument',$d->getErrorMessage(),$d->getErrorMessage());
 	}
 
 	if ($base64_contents) {
@@ -240,7 +240,7 @@ function &addDocument($session_ser,$group_id,$doc_group,$title,$description,$bas
 	}
 
 	if (!$d->create($uploaded_data_name,$uploaded_data_type,$file,$doc_group,$title,$description)) {
-		return new soap_fault ('','addDocument',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','addDocument',$d->getErrorMessage(),$d->getErrorMessage());
 	} else {
 		return $d->getID();
 	}
@@ -275,21 +275,21 @@ function &updateDocument($session_ser,$group_id,$doc_group,$doc_id,$title,$descr
 
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','updateDocument','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','updateDocument','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','updateDocument',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','updateDocument',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$d = new Document($g,$doc_id);
 	if (!$d || !is_object($d)) {
-		return new soap_fault ('','updateDocument','Could Not create Document','Could Not create Document');
+		return new soap_fault('','updateDocument','Could Not create Document','Could Not create Document');
 	} elseif ($d->isError()) {
-		return new soap_fault ('','updateDocument',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','updateDocument',$d->getErrorMessage(),$d->getErrorMessage());
 	}
 
 	if($state_id){
 		if(!validateState($state_id)){
-			return new soap_fault ('','updateDocument','Invalid State ID','Invalid State ID');
+			return new soap_fault('','updateDocument','Invalid State ID','Invalid State ID');
 		}
 	}else{
 		$state_id=$d->getStateID();
@@ -327,7 +327,7 @@ function &updateDocument($session_ser,$group_id,$doc_group,$doc_id,$title,$descr
 	}
 
 	if (!$d->update($uploaded_data_name,$uploaded_data_type,$file,$doc_group,$title,$description,$state_id)) {
-		return new soap_fault ('','updateDocument',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','updateDocument',$d->getErrorMessage(),$d->getErrorMessage());
 	} else {
 		return true;
 	}
@@ -357,19 +357,19 @@ function &addDocumentGroup($session_ser,$group_id,$groupname,$parent_doc_group)
 
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','addDocumentGroup','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','addDocumentGroup','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','addDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','addDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$dg = new DocumentGroup($g);
 	if (!$dg || !is_object($dg)) {
-		return new soap_fault ('','addDocumentGroup','Could Not get Document Group','Could Not Get Document Group');
+		return new soap_fault('','addDocumentGroup','Could Not get Document Group','Could Not Get Document Group');
 	}elseif ($dg->isError()) {
-		return new soap_fault ('','addDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
+		return new soap_fault('','addDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
 	}
 	if (!$dg->create($groupname, $parent_doc_group)) {
-		return new soap_fault ('','addDocumentGroup','Could Not Create Document Group','Could Not Create Document Group');
+		return new soap_fault('','addDocumentGroup','Could Not Create Document Group','Could Not Create Document Group');
 		}else {
 		return $dg->getID();
 	}
@@ -399,20 +399,20 @@ function &updateDocumentGroup($session_ser, $group_id, $doc_group, $new_groupnam
 
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','updateDocumentGroup','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','updateDocumentGroup','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','updateDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','updateDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$dg = new DocumentGroup($g,$doc_group);
 	if (!$dg || !is_object($dg)) {
-		return new soap_fault ('','updateDocumentGroup','Could Not get Document Group','Could Not Get Document Group');
+		return new soap_fault('','updateDocumentGroup','Could Not get Document Group','Could Not Get Document Group');
 	}elseif ($dg->isError()) {
-		return new soap_fault ('','updateDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
+		return new soap_fault('','updateDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
 	}
 
 	if (!$dg->update($new_groupname, $new_parent_doc_group)) {
-		return new soap_fault ('','updateDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
+		return new soap_fault('','updateDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
 		}else {
 		return true;
 	}
@@ -439,16 +439,16 @@ function &getDocuments($session_ser,$group_id,$doc_group_id) {
 	continue_session($session_ser);
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','getDocuments','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getDocuments','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','getDocuments',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','getDocuments',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$df = new DocumentFactory($g);
 	if (!$df || !is_object($df)) {
-		return new soap_fault ('','getDocuments','Could Not Get Document Factory','Could Not Get Document Factory');
+		return new soap_fault('','getDocuments','Could Not Get Document Factory','Could Not Get Document Factory');
 	} elseif ($df->isError()) {
-		return new soap_fault ('','getDocuments',$df->getErrorMessage(),$df->getErrorMessage());
+		return new soap_fault('','getDocuments',$df->getErrorMessage(),$df->getErrorMessage());
 	}
 
 	$df->setDocGroupID($doc_group_id);
@@ -504,16 +504,16 @@ function &getDocumentGroups($session_ser,$group_id) {
 	continue_session($session_ser);
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','getDocumentGroups','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getDocumentGroups','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','getDocumentGroups',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','getDocumentGroups',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$dgf = new DocumentGroupFactory($g);
 	if (!$dgf || !is_object($dgf)) {
-		return new soap_fault ('','getDocumentGroups','Could Not Get Document Group Factory','Could Not Get Document Group Factory');
+		return new soap_fault('','getDocumentGroups','Could Not Get Document Group Factory','Could Not Get Document Group Factory');
 	} elseif ($dgf->isError()) {
-		return new soap_fault ('','getDocumentGroups',$dgf->getErrorMessage(),$dgf->getErrorMessage());
+		return new soap_fault('','getDocumentGroups',$dgf->getErrorMessage(),$dgf->getErrorMessage());
 	}
 
 	return documentsGroup_to_soap($dgf->getDocumentGroups());
@@ -560,16 +560,16 @@ function &getDocumentGroup($session_ser,$group_id,$doc_group) {
 	continue_session($session_ser);
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','getDocumentGroup','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getDocumentGroup','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','getDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','getDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$dg = new DocumentGroup($g,$doc_group);
 	if (!$dg || !is_object($dg)) {
-		return new soap_fault ('','getDocumentGroup','Could Not Get Document Group Factory','Could Not Get Document Group Factory');
+		return new soap_fault('','getDocumentGroup','Could Not Get Document Group Factory','Could Not Get Document Group Factory');
 	} elseif ($dg->isError()) {
-		return new soap_fault ('','getDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
+		return new soap_fault('','getDocumentGroup',$dg->getErrorMessage(),$dg->getErrorMessage());
 	}
 
 	$documentGroup=array('doc_group_id'=>$dg->getID(),
@@ -600,16 +600,16 @@ function &getDocumentFiles($session_ser,$group_id,$doc_id) {
 	continue_session($session_ser);
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','GetDocumentFiles','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','GetDocumentFiles','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','GetDocumentFiles',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','GetDocumentFiles',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$d=new Document($g,$doc_id);
 	if (!$d || !is_object($d)) {
-		return new soap_fault ('','GetDocumentFiles','Could Not Get Document','Could Not Get Document');
+		return new soap_fault('','GetDocumentFiles','Could Not Get Document','Could Not Get Document');
 	} elseif ($d->isError()) {
-		return new soap_fault ('','GetDocumentFiles',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','GetDocumentFiles',$d->getErrorMessage(),$d->getErrorMessage());
 	}
 
 	$return = (documentfiles_to_soap($d));
@@ -646,20 +646,20 @@ function documentDelete($session_ser,$group_id,$doc_id) {
 
 	$g = group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','documentDelete','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','documentDelete','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
-		return new soap_fault ('','documentDelete',$g->getErrorMessage(),$g->getErrorMessage());
+		return new soap_fault('','documentDelete',$g->getErrorMessage(),$g->getErrorMessage());
 	}
 
 	$d= new Document($g,$doc_id);
 	if (!$d || !is_object($d)) {
-		return new soap_fault ('','documentDelete','Could Not Get Document','Could Not Get Document');
+		return new soap_fault('','documentDelete','Could Not Get Document','Could Not Get Document');
 	} elseif ($d->isError()) {
-		return new soap_fault ('','documentDelete',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','documentDelete',$d->getErrorMessage(),$d->getErrorMessage());
 	}
 
 	if (!$d->delete()) {
-		return new soap_fault ('','documentDelete',$d->getErrorMessage(),$d->getErrorMessage());
+		return new soap_fault('','documentDelete',$d->getErrorMessage(),$d->getErrorMessage());
 	} else {
 		return true;
 	}
diff --git a/src/www/soap/frs/frs.php b/src/www/soap/frs/frs.php
index ba1fd38..3dc6c5c 100644
--- a/src/www/soap/frs/frs.php
+++ b/src/www/soap/frs/frs.php
@@ -270,9 +270,9 @@ function getPackages($session_ser,$group_id) {
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getPackages','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getPackages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getPackages',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getPackages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$pkg_arr = get_frs_packages($grp);
@@ -315,9 +315,9 @@ function addPackage($session_ser,$group_id,$package_name,$is_public) {
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addPackage','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','addPackage','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','addPackage',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','addPackage',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$frsp = new FRSPackage($grp);
@@ -332,16 +332,16 @@ function getReleases($session_ser,$group_id,$package_id) {
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getReleases','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getReleases','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getReleases',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getReleases',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$frsp = frspackage_get_object($package_id);
 	if (!$frsp || !is_object($frsp)) {
-		return new soap_fault ('','getReleases','Could Not Get Package','Could Not Get Package');
+		return new soap_fault('','getReleases','Could Not Get Package','Could Not Get Package');
 	} elseif ($frsp->isError()) {
-		return new soap_fault ('','getReleases',$frsp->getErrorMessage(),$frsp->getErrorMessage());
+		return new soap_fault('','getReleases',$frsp->getErrorMessage(),$frsp->getErrorMessage());
 	}
 
 	$release_arr = $frsp->getReleases();
@@ -377,16 +377,16 @@ function addRelease($session_ser,$group_id,$package_id,$name,$notes,$changes,$re
 
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getPackages','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getPackages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getPackages',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getPackages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$frsp = frspackage_get_object($package_id);
 	if (!$frsp || !is_object($frsp)) {
-		return new soap_fault ('','getReleases','Could Not Get Package','Could Not Get Package');
+		return new soap_fault('','getReleases','Could Not Get Package','Could Not Get Package');
 	} elseif ($frsp->isError()) {
-		return new soap_fault ('','getReleases',$frsp->getErrorMessage(),$frsp->getErrorMessage());
+		return new soap_fault('','getReleases',$frsp->getErrorMessage(),$frsp->getErrorMessage());
 	}
 
 	$frsr = new FRSRelease($frsp);
@@ -402,24 +402,24 @@ function getFiles($session_ser,$group_id,$package_id,$release_id) {
 
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getFiles','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getFiles','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getFiles',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getFiles',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$frsp =& frspackage_get_object($package_id);
 	if (!$frsp || !is_object($frsp)) {
-		return new soap_fault ('','getFiles','Could Not Get Package','Could Not Get Package');
+		return new soap_fault('','getFiles','Could Not Get Package','Could Not Get Package');
 	} elseif ($frsp->isError()) {
-		return new soap_fault ('','getFiles',$frsp->getErrorMessage(),$frsp->getErrorMessage());
+		return new soap_fault('','getFiles',$frsp->getErrorMessage(),$frsp->getErrorMessage());
 	}
 
 	//TODO: Check that the release belongs to the package
 	$frsr =& frsrelease_get_object($release_id);
 	if (!$frsr || !is_object($frsr)) {
-		return new soap_fault ('','getFiles','Could Not Get Release','Could Not Get Release');
+		return new soap_fault('','getFiles','Could Not Get Release','Could Not Get Release');
 	} elseif ($frsr->isError()) {
-		return new soap_fault ('','getFiles',$frsr->getErrorMessage(),$frsr->getErrorMessage());
+		return new soap_fault('','getFiles',$frsr->getErrorMessage(),$frsr->getErrorMessage());
 	}
 
 	$files_arr =& $frsr->getFiles();
@@ -492,30 +492,30 @@ function getFile($session_ser,$group_id,$package_id,$release_id,$file_id) {
 
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getFile','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getFile','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getFile',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getFile',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$frsp =& frspackage_get_object($package_id);
 	if (!$frsp || !is_object($frsp)) {
-		return new soap_fault ('','getFile','Could Not Get Package','Could Not Get Package');
+		return new soap_fault('','getFile','Could Not Get Package','Could Not Get Package');
 	} elseif ($frsp->isError()) {
-		return new soap_fault ('','getFile',$frsp->getErrorMessage(),$frsp->getErrorMessage());
+		return new soap_fault('','getFile',$frsp->getErrorMessage(),$frsp->getErrorMessage());
 	}
 
 	$frsr =& frsrelease_get_object($release_id);
 	if (!$frsr || !is_object($frsr)) {
-		return new soap_fault ('','getFile','Could Not Get Release','Could Not Get Release');
+		return new soap_fault('','getFile','Could Not Get Release','Could Not Get Release');
 	} elseif ($frsr->isError()) {
-		return new soap_fault ('','getFile',$frsr->getErrorMessage(),$frsr->getErrorMessage());
+		return new soap_fault('','getFile',$frsr->getErrorMessage(),$frsr->getErrorMessage());
 	}
 
 	$frsf = new FRSFile($frsr, $file_id);
 	if (!$frsf || !is_object($frsf)) {
-		return new soap_fault ('','getFile','Could Not Get File','Could Not Get File');
+		return new soap_fault('','getFile','Could Not Get File','Could Not Get File');
 	} elseif ($frsf->isError()) {
-		return new soap_fault ('','getFile',$frsf->getErrorMessage(),$frsf->getErrorMessage());
+		return new soap_fault('','getFile',$frsf->getErrorMessage(),$frsf->getErrorMessage());
 	}
 
 	$file_location = forge_get_config('upload_dir').'/'.
@@ -538,41 +538,41 @@ function addFile($session_ser,$group_id,$package_id,$release_id,$name,$base64_co
 
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addFile','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','addFile','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','addFile',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','addFile',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$frsp =& frspackage_get_object($package_id);
 	if (!$frsp || !is_object($frsp)) {
-		return new soap_fault ('','addFile','Could Not Get Package','Could Not Get Package');
+		return new soap_fault('','addFile','Could Not Get Package','Could Not Get Package');
 	} elseif ($frsp->isError()) {
-		return new soap_fault ('','addFile',$frsp->getErrorMessage(),$frsp->getErrorMessage());
+		return new soap_fault('','addFile',$frsp->getErrorMessage(),$frsp->getErrorMessage());
 	}
 
 	$frsr =& frsrelease_get_object($release_id);
 	if (!$frsr || !is_object($frsr)) {
-		return new soap_fault ('','addFile','Could Not Get Release','Could Not Get Release');
+		return new soap_fault('','addFile','Could Not Get Release','Could Not Get Release');
 	} elseif ($frsr->isError()) {
-		return new soap_fault ('','addFile',$frsr->getErrorMessage(),$frsr->getErrorMessage());
+		return new soap_fault('','addFile',$frsr->getErrorMessage(),$frsr->getErrorMessage());
 	}
 
 	$frsf = new FRSFile($frsr);
 	if (!$frsf || !is_object($frsf)) {
-		return new soap_fault ('','addFile','Could Not Get File','Could Not Get File');
+		return new soap_fault('','addFile','Could Not Get File','Could Not Get File');
 	}
 
 	$tmpname = tempnam("/tmp", "gforge_cli_frs");
 	$fh = fopen($tmpname, "wb");
 	if (!$fh) {
-		return new soap_fault ('','addFile','Could not create temporary file in directory /tmp');
+		return new soap_fault('','addFile','Could not create temporary file in directory /tmp');
 	}
 	fwrite($fh, base64_decode($base64_contents));
 	fclose($fh);
 
 	if (!$frsf->create($name,$tmpname,$type_id,$processor_id,$release_time)) {
 		@unlink($tmpname);
-		return new soap_fault ('','addFile',$frsf->getErrorMessage(),$frsf->getErrorMessage());
+		return new soap_fault('','addFile',$frsf->getErrorMessage(),$frsf->getErrorMessage());
 	} else {
 		@unlink($tmpname);
 		return $frsf->getID();
diff --git a/src/www/soap/pm/pm.php b/src/www/soap/pm/pm.php
index fc6cf71..96bfc7e 100644
--- a/src/www/soap/pm/pm.php
+++ b/src/www/soap/pm/pm.php
@@ -369,16 +369,16 @@ function &getProjectGroups($session_ser,$group_id) {
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectGroups','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getProjectGroups','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getProjectGroups',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getProjectGroups',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$atf = new ProjectGroupFactory($grp);
 	if (!$atf || !is_object($atf)) {
-		return new soap_fault ('','getProjectGroups','Could Not Get ProjectGroupFactory','Could Not Get ProjectGroupFactory');
+		return new soap_fault('','getProjectGroups','Could Not Get ProjectGroupFactory','Could Not Get ProjectGroupFactory');
 	} elseif ($atf->isError()) {
-		return new soap_fault ('','getProjectGroups',$atf->getErrorMessage(),$atf->getErrorMessage());
+		return new soap_fault('','getProjectGroups',$atf->getErrorMessage(),$atf->getErrorMessage());
 	}
 	return projectgroups_to_soap($atf->getProjectGroups());
 }
@@ -413,23 +413,23 @@ function &addProjectTask($session_ser,$group_id,$group_project_id,$summary,$deta
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addProjectTask','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','addProjectTask','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','addProjectTask',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','addProjectTask',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$at = new ProjectGroup($grp,$group_project_id);
 	if (!$at || !is_object($at)) {
-		return new soap_fault ('','addProjectTask','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+		return new soap_fault('','addProjectTask','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
 	} elseif ($at->isError()) {
-		return new soap_fault ('','addProjectTask',$at->getErrorMessage(),$at->getErrorMessage());
+		return new soap_fault('','addProjectTask',$at->getErrorMessage(),$at->getErrorMessage());
 	}
 
 	$a = new ProjectTask($at);
 	if (!$a || !is_object($a)) {
-		return new soap_fault ('','addProjectTask','Could Not Get ProjectTask','Could Not Get ProjectTask');
+		return new soap_fault('','addProjectTask','Could Not Get ProjectTask','Could Not Get ProjectTask');
 	} elseif ($a->isError()) {
-		return new soap_fault ('','addProjectTask','$a->getErrorMessage()',$a->getErrorMessage());
+		return new soap_fault('','addProjectTask','$a->getErrorMessage()',$a->getErrorMessage());
 	}
 
 	// transform the $depend_arr (which is an array of ints) to include the link type
@@ -440,7 +440,7 @@ function &addProjectTask($session_ser,$group_id,$group_project_id,$summary,$deta
 
 	if (!$a->create($summary,$details,$priority,$hours,$start_date,$end_date,
             $category_id,$percent_complete,$assigned_arr,$depend_map,$duration,$parent_id)) {
-		return new soap_fault ('','addProjectTask',$a->getErrorMessage(),$a->getErrorMessage());
+		return new soap_fault('','addProjectTask',$a->getErrorMessage(),$a->getErrorMessage());
 	} else {
 		return $a->getID();
 	}
@@ -455,23 +455,23 @@ function &updateProjectTask($session_ser,$group_id,$group_project_id,$project_ta
     continue_session($session_ser);
     $grp = group_get_object($group_id);
     if (!$grp || !is_object($grp)) {
-        return new soap_fault ('','updateProjectTask','Could Not Get Project','Could Not Get Project');
+        return new soap_fault('','updateProjectTask','Could Not Get Project','Could Not Get Project');
     } elseif ($grp->isError()) {
-        return new soap_fault ('','updateProjectTask',$grp->getErrorMessage(),$grp->getErrorMessage());
+        return new soap_fault('','updateProjectTask',$grp->getErrorMessage(),$grp->getErrorMessage());
     }
 
     $at = new ProjectGroup($grp,$group_project_id);
     if (!$at || !is_object($at)) {
-        return new soap_fault ('','updateProjectTask','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+        return new soap_fault('','updateProjectTask','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
     } elseif ($at->isError()) {
-        return new soap_fault ('','updateProjectTask',$at->getErrorMessage(),$at->getErrorMessage());
+        return new soap_fault('','updateProjectTask',$at->getErrorMessage(),$at->getErrorMessage());
     }
 
     $a = new ProjectTask($at,$project_task_id);
     if (!$a || !is_object($a)) {
-        return new soap_fault ('','updateProjectTask','Could Not Get ProjectTask','Could Not Get ProjectTask');
+        return new soap_fault('','updateProjectTask','Could Not Get ProjectTask','Could Not Get ProjectTask');
     } elseif ($a->isError()) {
-        return new soap_fault ('','updateProjectTask',$a->getErrorMessage(),$a->getErrorMessage());
+        return new soap_fault('','updateProjectTask',$a->getErrorMessage(),$a->getErrorMessage());
     }
 
     // transform the $depend_arr (which is an array of ints) to include the link type
@@ -482,7 +482,7 @@ function &updateProjectTask($session_ser,$group_id,$group_project_id,$project_ta
 
     if (!$a->update($summary,$details,$priority,$hours,$start_date,$end_date,$status_id,$category_id,
 		$percent_complete,$assigned_arr,$depend_map,$new_group_project_id,$duration,$parent_id)) {
-        return new soap_fault ('','updateProjectTask',$a->getErrorMessage(),$a->getErrorMessage());
+        return new soap_fault('','updateProjectTask',$a->getErrorMessage(),$a->getErrorMessage());
     } else {
         return $a->getID();
     }
@@ -495,16 +495,16 @@ function &getProjectTaskCategories($session_ser,$group_id,$group_project_id) {
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectTaskCategories','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getProjectTaskCategories','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getProjectTaskCategories',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getProjectTaskCategories',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$at = new ProjectGroup($grp,$group_project_id);
 	if (!$at || !is_object($at)) {
-		return new soap_fault ('','getProjectTaskCategories','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+		return new soap_fault('','getProjectTaskCategories','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
 	} elseif ($at->isError()) {
-		return new soap_fault ('','getProjectTaskCategories',$at->getErrorMessage(),$at->getErrorMessage());
+		return new soap_fault('','getProjectTaskCategories',$at->getErrorMessage(),$at->getErrorMessage());
 	}
 
 	$cat_arr = $at->getCategoryObjects();
@@ -537,16 +537,16 @@ function &getProjectTechnicians($session_ser,$group_id,$group_project_id) {
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectTechnicians','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getProjectTechnicians','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getProjectTechnicians',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getProjectTechnicians',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$pg = new ProjectGroup($grp,$group_project_id);
 	if (!$pg || !is_object($pg)) {
-		return new soap_fault ('','getProjectTechnicians','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+		return new soap_fault('','getProjectTechnicians','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
 	} elseif ($pg->isError()) {
-		return new soap_fault ('','getProjectTechnicians',$pg->getErrorMessage(),$pg->getErrorMessage());
+		return new soap_fault('','getProjectTechnicians',$pg->getErrorMessage(),$pg->getErrorMessage());
 	}
 
 	$engine = RBACEngine::getInstance () ;
@@ -559,23 +559,23 @@ function &getProjectTasks($session_ser,$group_id,$group_project_id,$assigned_to,
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectTasks','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getProjectTasks','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getProjectTasks',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getProjectTasks',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$pg = new ProjectGroup($grp,$group_project_id);
 	if (!$pg || !is_object($pg)) {
-		return new soap_fault ('','getProjectTasks','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+		return new soap_fault('','getProjectTasks','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
 	} elseif ($pg->isError()) {
-		return new soap_fault ('','getProjectTasks',$pg->getErrorMessage(),$pg->getErrorMessage());
+		return new soap_fault('','getProjectTasks',$pg->getErrorMessage(),$pg->getErrorMessage());
 	}
 
 	$ptf = new ProjectTaskFactory($pg);
 	if (!$ptf || !is_object($ptf)) {
-		return new soap_fault ('','getProjectTasks','Could Not Get ProjectTaskFactory','Could Not Get ProjectTaskFactory');
+		return new soap_fault('','getProjectTasks','Could Not Get ProjectTaskFactory','Could Not Get ProjectTaskFactory');
 	} elseif ($ptf->isError()) {
-		return new soap_fault ('','getProjectTasks',$ptf->getErrorMessage(),$ptf->getErrorMessage());
+		return new soap_fault('','getProjectTasks',$ptf->getErrorMessage(),$ptf->getErrorMessage());
 	}
 
 	$ptf->setup(0,0,0,0,$assigned_to,$status,$category,$group);
@@ -643,23 +643,23 @@ function &getProjectMessages($session_ser,$group_id,$group_project_id,$project_t
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectMessages','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','getProjectMessages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','getProjectMessages',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','getProjectMessages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$at = new ProjectGroup($grp,$group_project_id);
 	if (!$at || !is_object($at)) {
-		return new soap_fault ('','getProjectMessages','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+		return new soap_fault('','getProjectMessages','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
 	} elseif ($at->isError()) {
-		return new soap_fault ('','getProjectMessages',$at->getErrorMessage(),$at->getErrorMessage());
+		return new soap_fault('','getProjectMessages',$at->getErrorMessage(),$at->getErrorMessage());
 	}
 
 	$a = new ProjectTask($at,$project_task_id);
 	if (!$a || !is_object($a)) {
-		return new soap_fault ('','getProjectMessages','Could Not Get ProjectTask','Could Not Get ProjectTask');
+		return new soap_fault('','getProjectMessages','Could Not Get ProjectTask','Could Not Get ProjectTask');
 	} elseif ($a->isError()) {
-		return new soap_fault ('','getProjectMessages',$a->getErrorMessage(),$a->getErrorMessage());
+		return new soap_fault('','getProjectMessages',$a->getErrorMessage(),$a->getErrorMessage());
 	}
 	return projectmessages_to_soap($a->getMessageObjects());
 }
@@ -691,34 +691,34 @@ function &addProjectMessage($session_ser,$group_id,$group_project_id,$project_ta
 	continue_session($session_ser);
 	$grp = group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addProjectMessage','Could Not Get Project','Could Not Get Project');
+		return new soap_fault('','addProjectMessage','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
-		return new soap_fault ('','addProjectMessage',$grp->getErrorMessage(),$grp->getErrorMessage());
+		return new soap_fault('','addProjectMessage',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
 
 	$at = new ProjectGroup($grp,$group_project_id);
 	if (!$at || !is_object($at)) {
-		return new soap_fault ('','addProjectMessage','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
+		return new soap_fault('','addProjectMessage','Could Not Get ProjectGroup','Could Not Get ProjectGroup');
 	} elseif ($at->isError()) {
-		return new soap_fault ('','addProjectMessage',$at->getErrorMessage(),$at->getErrorMessage());
+		return new soap_fault('','addProjectMessage',$at->getErrorMessage(),$at->getErrorMessage());
 	}
 
 	$a = new ProjectTask($at,$project_task_id);
 	if (!$a || !is_object($a)) {
-		return new soap_fault ('','addProjectMessage','Could Not Get ProjectTask','Could Not Get ProjectTask');
+		return new soap_fault('','addProjectMessage','Could Not Get ProjectTask','Could Not Get ProjectTask');
 	} elseif ($a->isError()) {
-		return new soap_fault ('','addProjectMessage',$a->getErrorMessage(),$a->getErrorMessage());
+		return new soap_fault('','addProjectMessage',$a->getErrorMessage(),$a->getErrorMessage());
 	}
 
 	$am = new ProjectMessage($a);
 	if (!$am || !is_object($am)) {
-		return new soap_fault ('','addProjectMessage','Could Not Get ProjectMessage','Could Not Get ProjectMessage');
+		return new soap_fault('','addProjectMessage','Could Not Get ProjectMessage','Could Not Get ProjectMessage');
 	} elseif ($am->isError()) {
-		return new soap_fault ('','addProjectMessage',$am->getErrorMessage(),$am->getErrorMessage());
+		return new soap_fault('','addProjectMessage',$am->getErrorMessage(),$am->getErrorMessage());
 	}
 
 	if (!$am->create($body)) {
-		return new soap_fault ('','addProjectMessage',$am->getErrorMessage(),$am->getErrorMessage());
+		return new soap_fault('','addProjectMessage',$am->getErrorMessage(),$am->getErrorMessage());
 	} else {
 		return $am->getID();
 	}
@@ -734,7 +734,7 @@ function addSubproject($session_ser,$group_id,$group_project_id,$project_name,$d
 	$pg = new ProjectGroup($g,$group_project_id);
 
 	if (!$pg->create($project_name,$description,$send_all_posts_to)) {
-		return new soap_fault ('','addSubproject','Could Not Create Subproject','Could Not Create Subproject');
+		return new soap_fault('','addSubproject','Could Not Create Subproject','Could Not Create Subproject');
 	} else {
 		return $pg->getID();
 	}
@@ -750,7 +750,7 @@ function updateSubproject($session_ser,$group_id,$group_project_id,$project_name
 	$pg = new ProjectGroup($g,$group_project_id);
 
 	if (!$pg->update($project_name,$description,$send_all_posts_to)) {
-		return new soap_fault ('','updateSubproject','Could Not Update Subproject','Could Not Update Subproject');
+		return new soap_fault('','updateSubproject','Could Not Update Subproject','Could Not Update Subproject');
 	} else {
 		return true;
 	}
@@ -766,7 +766,7 @@ function deleteSubproject($session_ser,$group_id,$group_project_id) {
 	$pg = new ProjectGroup($g,$group_project_id);
 
 	if (!$pg->delete(true,true)) {
-		return new soap_fault ('','deleteSubproject','Could Not Delete Subproject','Could Not Delete Subproject');
+		return new soap_fault('','deleteSubproject','Could Not Delete Subproject','Could Not Delete Subproject');
 	} else {
 		return true;
 	}

-----------------------------------------------------------------------

Summary of changes:
 .../soapadmin/www/coreapi/coreapiservice.php       |   2 +-
 src/www/scm/admin/index.php                        |   1 -
 src/www/search/include/SearchManager.class.php     |   6 +-
 src/www/soap/common/group.php                      |  62 ++++++-------
 src/www/soap/common/user.php                       |  40 ++++-----
 src/www/soap/docman/docman.php                     |  84 ++++++++---------
 src/www/soap/frs/frs.php                           |  70 +++++++--------
 src/www/soap/pm/pm.php                             | 100 ++++++++++-----------
 8 files changed, 182 insertions(+), 183 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list