Passed
Branch develop (d85e4e)
by Laurent
84:36
created
htdocs/core/lib/admin.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1127,7 +1127,7 @@
 block discarded – undo
1127 1127
 
1128 1128
 	if (!count($ret['errors'])) {
1129 1129
 		$ret['nbmodules']++;
1130
-		$ret['nbperms'] += (is_array($objMod->rights)?count($objMod->rights):0);
1130
+		$ret['nbperms'] += (is_array($objMod->rights) ?count($objMod->rights) : 0);
1131 1131
 	}
1132 1132
 
1133 1133
 	return $ret;
Please login to merge, or discard this patch.
htdocs/hrm/job_note.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 // Load Dolibarr environment
30 30
 require '../main.inc.php';
31 31
 
32
-require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';
33
-require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_job.lib.php';
32
+require_once DOL_DOCUMENT_ROOT.'/hrm/class/job.class.php';
33
+require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm_job.lib.php';
34 34
 
35 35
 // Load translation files required by the page
36 36
 $langs->loadLangs(array("hrm", "companies"));
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	$linkback = '<a href="'.dol_buildpath('/hrm/job_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
104 104
 
105 105
 	$morehtmlref = '<div class="refid">';
106
-	$morehtmlref.= $object->label;
106
+	$morehtmlref .= $object->label;
107 107
 	$morehtmlref .= '</div>';
108 108
 
109 109
 
Please login to merge, or discard this patch.
htdocs/hrm/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
 	$staticrecruitmentcandidature = new RecruitmentCandidature($db);
337 337
 	$staticrecruitmentjobposition = new RecruitmentJobPosition($db);
338 338
 	$sql = "SELECT rc.rowid, rc.ref, rc.email, rc.lastname, rc.firstname, rc.date_creation, rc.tms, rc.status,";
339
-	$sql.= " rp.rowid as jobid, rp.ref as jobref, rp.label";
339
+	$sql .= " rp.rowid as jobid, rp.ref as jobref, rp.label";
340 340
 	$sql .= " FROM ".MAIN_DB_PREFIX."recruitment_recruitmentcandidature as rc";
341 341
 	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."recruitment_recruitmentjobposition as rp ON rc.fk_recruitmentjobposition = rp.rowid";
342 342
 	if ($conf->societe->enabled && empty($user->rights->societe->client->voir) && !$socid) {
Please login to merge, or discard this patch.
htdocs/hrm/position_note.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 // Load Dolibarr environment
31 31
 require '../main.inc.php';
32 32
 
33
-require_once DOL_DOCUMENT_ROOT . '/hrm/class/position.class.php';
34
-require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_position.lib.php';
35
-require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';;
33
+require_once DOL_DOCUMENT_ROOT.'/hrm/class/position.class.php';
34
+require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm_position.lib.php';
35
+require_once DOL_DOCUMENT_ROOT.'/hrm/class/job.class.php'; ;
36 36
 
37 37
 // Load translation files required by the page
38 38
 $langs->loadLangs(array("hrm", "companies"));
Please login to merge, or discard this patch.
htdocs/hrm/evaluation_note.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 // Load Dolibarr environment
29 29
 require '../main.inc.php';
30 30
 
31
-require_once DOL_DOCUMENT_ROOT . '/hrm/class/evaluation.class.php';
32
-require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_evaluation.lib.php';
33
-require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';
31
+require_once DOL_DOCUMENT_ROOT.'/hrm/class/evaluation.class.php';
32
+require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm_evaluation.lib.php';
33
+require_once DOL_DOCUMENT_ROOT.'/hrm/class/job.class.php';
34 34
 
35 35
 // Load translation files required by the page
36 36
 $langs->loadLangs(array("hrm", "companies"));
Please login to merge, or discard this patch.
htdocs/adherents/type_translation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
 	// update of object
76 76
 	if ($forcelangprod == $current_lang) {
77
-		$object->label		 = GETPOST("libelle", 'alphanohtml');
77
+		$object->label = GETPOST("libelle", 'alphanohtml');
78 78
 		$object->description = dol_htmlcleanlastbr(GETPOST("desc", 'restricthtml'));
79 79
 		//$object->other		 = dol_htmlcleanlastbr(GETPOST("other", 'restricthtml'));
80 80
 	} else {
Please login to merge, or discard this patch.
htdocs/fourn/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
 $sql .= ", st.libelle as stcomm";
239 239
 $sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
240 240
 if (!empty($conf->global->MAIN_COMPANY_PERENTITY_SHARED)) {
241
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity);
241
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity);
242 242
 }
243 243
 $sql .= ", ".MAIN_DB_PREFIX."c_stcomm as st";
244 244
 if (empty($user->rights->societe->client->voir) && !$socid) {
Please login to merge, or discard this patch.
htdocs/societe/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 $sql .= ", s.canvas, s.tms as date_modification, s.status as status";
276 276
 $sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
277 277
 if (!empty($conf->global->MAIN_COMPANY_PERENTITY_SHARED)) {
278
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity);
278
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity);
279 279
 }
280 280
 if (empty($user->rights->societe->client->voir) && !$socid) {
281 281
 	$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 $sql .= $db->plimit($max, 0);
295 295
 
296 296
 //print $sql;
297
-$lastmodified="";
297
+$lastmodified = "";
298 298
 $result = $db->query($sql);
299 299
 if ($result) {
300 300
 	$num = $db->num_rows($result);
Please login to merge, or discard this patch.
htdocs/core/boxes/box_factures_imp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 			$sql .= ", sum(pf.amount) as am";
107 107
 			$sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
108 108
 			if (!empty($conf->global->MAIN_COMPANY_PERENTITY_SHARED)) {
109
-				$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity);
109
+				$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity);
110 110
 			}
111 111
 			if (empty($user->rights->societe->client->voir) && !$user->socid) {
112 112
 				$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
Please login to merge, or discard this patch.