From ad7aee9fc2d7d2d1ca8817f364591839799b3886 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 7 Jan 2012 23:57:42 +0100 Subject: [PATCH] Fix: Checkstyle warnings --- htdocs/conf/conf.php.example | 480 +++++++++--------- .../interface_modLdap_Ldapsynchro.class.php | 6 +- htdocs/install/etape1.php | 18 +- 3 files changed, 251 insertions(+), 253 deletions(-) diff --git a/htdocs/conf/conf.php.example b/htdocs/conf/conf.php.example index f3cd80a6309a2..b006e884208c1 100644 --- a/htdocs/conf/conf.php.example +++ b/htdocs/conf/conf.php.example @@ -1,304 +1,304 @@ diff --git a/htdocs/core/triggers/interface_modLdap_Ldapsynchro.class.php b/htdocs/core/triggers/interface_modLdap_Ldapsynchro.class.php index 949854e09615b..542150f217bc7 100644 --- a/htdocs/core/triggers/interface_modLdap_Ldapsynchro.class.php +++ b/htdocs/core/triggers/interface_modLdap_Ldapsynchro.class.php @@ -217,11 +217,11 @@ function run_trigger($action,$object,$user,$langs,$conf) $info=$object->_load_ldap_info(); $dn=$object->_load_ldap_dn($info); - + // Get a gid number for objectclass PosixGroup if(in_array('posixGroup',$info['objectclass'])) $info['gidNumber'] = $ldap->getNextGroupGid(); - + $result=$ldap->add($dn,$info,$user); if ($result < 0) { @@ -482,7 +482,7 @@ function run_trigger($action,$object,$user,$langs,$conf) dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if ($conf->ldap->enabled && $conf->global->LDAP_MEMBER_ACTIVE) { - # If status field is setup to be synchronized + // If status field is setup to be synchronized if ($conf->global->LDAP_FIELD_MEMBER_STATUS) { $ldap=new Ldap(); diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index 934abcd65f090..fb2f6f966f804 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -753,15 +753,13 @@ function write_conf_file($conffile) { clearstatcache(); - fputs($fp, '