Completed
Branch develop (936be1)
by
unknown
15:34
created
htdocs/user/logout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	unset($_SESSION["dol_login"]);
51 51
 	unset($_SESSION['dol_entity']);
52 52
 	unset($_SESSION['urlfrom']);
53
-	die("Applicative disconnection should be useless when connection was made in mode ".$_SESSION["dol_authmode"]);	// TODO Really ? It at least delete the session file ?!
53
+	die("Applicative disconnection should be useless when connection was made in mode ".$_SESSION["dol_authmode"]); // TODO Really ? It at least delete the session file ?!
54 54
 }
55 55
 
56 56
 //global $conf, $langs, $user;
Please login to merge, or discard this patch.
htdocs/user/passwordforgotten.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,12 +142,12 @@
 block discarded – undo
142 142
 			$messagewarning .= '</div>';
143 143
 
144 144
 			if ($result <= 0 && $edituser->error == 'USERNOTFOUND') {
145
-				usleep(20000);	// add delay to simulate setPassword() and send_password() actions delay (0.02s)
145
+				usleep(20000); // add delay to simulate setPassword() and send_password() actions delay (0.02s)
146 146
 				$message .= $messagewarning;
147 147
 				$username = '';
148 148
 			} else {
149 149
 				if (empty($edituser->email)) {
150
-					usleep(20000);	// add delay to simulate setPassword() and send_password() actions delay (0.02s)
150
+					usleep(20000); // add delay to simulate setPassword() and send_password() actions delay (0.02s)
151 151
 					$message .= $messagewarning;
152 152
 				} else {
153 153
 					$newpassword = $edituser->setPassword($user, '', 1);
Please login to merge, or discard this patch.
htdocs/admin/supplier_invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
 $type = GETPOST('type', 'alpha');
44 44
 $value = GETPOST('value', 'alpha');
45
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
45
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
46 46
 
47 47
 $label = GETPOST('label', 'alpha');
48 48
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
htdocs/admin/expensereport_rules.php 1 patch
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 $langs->loadLangs(array("admin", "other", "trips", "errors", "dict"));
37 37
 
38 38
 // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
39
-$hookmanager->initHooks(array('admin', 'dictionaryadmin','expensereport_rules'));
39
+$hookmanager->initHooks(array('admin', 'dictionaryadmin', 'expensereport_rules'));
40 40
 
41 41
 $object = new ExpenseReportRule($db);
42 42
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 			}
145 145
 
146 146
 			if (!$error) {
147
-				header('Location: ' . $_SERVER['PHP_SELF']);
147
+				header('Location: '.$_SERVER['PHP_SELF']);
148 148
 				exit;
149 149
 			} else {
150 150
 				$action = '';
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 			dol_print_error($object->db);
159 159
 		}
160 160
 
161
-		header('Location: ' . $_SERVER['PHP_SELF']);
161
+		header('Location: '.$_SERVER['PHP_SELF']);
162 162
 		exit;
163 163
 	}
164 164
 
@@ -184,47 +184,47 @@  discard block
 block discarded – undo
184 184
 
185 185
 	$form = new Form($db);
186 186
 
187
-	$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php?restore_lastsearch_values=1">' . $langs->trans("BackToModuleList") . '</a>';
187
+	$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
188 188
 	print load_fiche_titre($langs->trans("ExpenseReportsSetup"), $linkback, 'title_setup');
189 189
 
190 190
 	$head = expensereport_admin_prepare_head();
191 191
 	print dol_get_fiche_head($head, 'expenserules', $langs->trans("ExpenseReportsRules"), -1, 'trip');
192 192
 
193
-	echo '<span class="opacitymedium">' . $langs->trans('ExpenseReportRulesDesc') . '</span>';
193
+	echo '<span class="opacitymedium">'.$langs->trans('ExpenseReportRulesDesc').'</span>';
194 194
 	print '<br><br>';
195 195
 
196 196
 if ($action != 'edit') {
197
-	echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
198
-	echo '<input type="hidden" name="token" value="' . newToken() . '" />';
197
+	echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">';
198
+	echo '<input type="hidden" name="token" value="'.newToken().'" />';
199 199
 	echo '<input type="hidden" name="action" value="save" />';
200 200
 
201 201
 	echo '<table class="noborder centpercent">';
202 202
 
203 203
 	echo '<tr class="liste_titre headerexpensereportrules">';
204
-	echo '<th class="linecolapplyto">' . $langs->trans('ExpenseReportApplyTo') . '</th>';
205
-	echo '<th class="linecoltype">' . $langs->trans('Type') . '</th>';
206
-	echo '<th class="linecollimiton">' . $langs->trans('ExpenseReportLimitOn') . '</th>';
207
-	echo '<th class="linecoldatestart">' . $langs->trans('ExpenseReportDateStart') . '</th>';
208
-	echo '<th class="linecoldateend">' . $langs->trans('ExpenseReportDateEnd') . '</th>';
209
-	echo '<th class="linecollimitamount">' . $langs->trans('ExpenseReportLimitAmount') . '</th>';
210
-	echo '<th class="linecolrestrictive">' . $langs->trans('ExpenseReportRestrictive') . '</th>';
204
+	echo '<th class="linecolapplyto">'.$langs->trans('ExpenseReportApplyTo').'</th>';
205
+	echo '<th class="linecoltype">'.$langs->trans('Type').'</th>';
206
+	echo '<th class="linecollimiton">'.$langs->trans('ExpenseReportLimitOn').'</th>';
207
+	echo '<th class="linecoldatestart">'.$langs->trans('ExpenseReportDateStart').'</th>';
208
+	echo '<th class="linecoldateend">'.$langs->trans('ExpenseReportDateEnd').'</th>';
209
+	echo '<th class="linecollimitamount">'.$langs->trans('ExpenseReportLimitAmount').'</th>';
210
+	echo '<th class="linecolrestrictive">'.$langs->trans('ExpenseReportRestrictive').'</th>';
211 211
 	echo '<th>&nbsp;</th>';
212 212
 	echo '</tr>';
213 213
 
214 214
 	echo '<tr class="oddeven">';
215 215
 	echo '<td>';
216
-	echo '<div class="float linecolapplyto">' . $form->selectarray('apply_to', $tab_apply, '', 0) . '</div>';
217
-	echo '<div id="user" class="float linecoluser">' . $form->select_dolusers('', 'fk_user') . '</div>';
218
-	echo '<div id="group" class="float linecolgroup">' . $form->select_dolgroups('', 'fk_usergroup') . '</div>';
216
+	echo '<div class="float linecolapplyto">'.$form->selectarray('apply_to', $tab_apply, '', 0).'</div>';
217
+	echo '<div id="user" class="float linecoluser">'.$form->select_dolusers('', 'fk_user').'</div>';
218
+	echo '<div id="group" class="float linecolgroup">'.$form->select_dolgroups('', 'fk_usergroup').'</div>';
219 219
 	echo '</td>';
220 220
 
221
-	echo '<td class="linecoltype">' . $form->selectExpense('', 'fk_c_type_fees', 0, 1, 1) . '</td>';
222
-	echo '<td class="linecoltyperule">' . $form->selectarray('code_expense_rules_type', $tab_rules_type, '', 0) . '</td>';
223
-	echo '<td class="linecoldatestart">' . $form->selectDate(strtotime(date('Y-m-01', dol_now())), 'start', '', '', 0, '', 1, 0) . '</td>';
224
-	echo '<td class="linecoldateend">' . $form->selectDate(strtotime(date('Y-m-t', dol_now())), 'end', '', '', 0, '', 1, 0) . '</td>';
221
+	echo '<td class="linecoltype">'.$form->selectExpense('', 'fk_c_type_fees', 0, 1, 1).'</td>';
222
+	echo '<td class="linecoltyperule">'.$form->selectarray('code_expense_rules_type', $tab_rules_type, '', 0).'</td>';
223
+	echo '<td class="linecoldatestart">'.$form->selectDate(strtotime(date('Y-m-01', dol_now())), 'start', '', '', 0, '', 1, 0).'</td>';
224
+	echo '<td class="linecoldateend">'.$form->selectDate(strtotime(date('Y-m-t', dol_now())), 'end', '', '', 0, '', 1, 0).'</td>';
225 225
 	echo '<td class="linecolamount"><input type="text" value="" class="maxwidth100" name="amount" class="amount right" /></td>';
226
-	echo '<td class="linecolrestrictive">' . $form->selectyesno('restrictive', 0, 1) . '</td>';
227
-	echo '<td class="right linecolbutton"><input type="submit" class="button button-add" value="' . $langs->trans('Add') . '" /></td>';
226
+	echo '<td class="linecolrestrictive">'.$form->selectyesno('restrictive', 0, 1).'</td>';
227
+	echo '<td class="right linecolbutton"><input type="submit" class="button button-add" value="'.$langs->trans('Add').'" /></td>';
228 228
 	echo '</tr>';
229 229
 
230 230
 	echo '</table>';
@@ -232,24 +232,24 @@  discard block
 block discarded – undo
232 232
 }
233 233
 
234 234
 
235
-	echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
236
-	echo '<input type="hidden" name="token" value="' . newToken() . '" />';
235
+	echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">';
236
+	echo '<input type="hidden" name="token" value="'.newToken().'" />';
237 237
 
238 238
 if ($action == 'edit') {
239
-	echo '<input type="hidden" name="id" value="' . $object->id . '" />';
239
+	echo '<input type="hidden" name="id" value="'.$object->id.'" />';
240 240
 	echo '<input type="hidden" name="action" value="save" />';
241 241
 }
242 242
 
243 243
 	echo '<table class="noborder centpercent">';
244 244
 
245 245
 	echo '<tr class="liste_titre expensereportrules">';
246
-	echo '<th class="linecolapplyto">' . $langs->trans('ExpenseReportApplyTo') . '</th>';
247
-	echo '<th class="linecoltype">' . $langs->trans('Type') . '</th>';
248
-	echo '<th class="linecollimiton">' . $langs->trans('ExpenseReportLimitOn') . '</th>';
249
-	echo '<th class="linecoldatestart">' . $langs->trans('ExpenseReportDateStart') . '</th>';
250
-	echo '<th class="linecoldateend">' . $langs->trans('ExpenseReportDateEnd') . '</th>';
251
-	echo '<th class="linecollimitamount">' . $langs->trans('ExpenseReportLimitAmount') . '</th>';
252
-	echo '<th class="linecolrestrictive">' . $langs->trans('ExpenseReportRestrictive') . '</th>';
246
+	echo '<th class="linecolapplyto">'.$langs->trans('ExpenseReportApplyTo').'</th>';
247
+	echo '<th class="linecoltype">'.$langs->trans('Type').'</th>';
248
+	echo '<th class="linecollimiton">'.$langs->trans('ExpenseReportLimitOn').'</th>';
249
+	echo '<th class="linecoldatestart">'.$langs->trans('ExpenseReportDateStart').'</th>';
250
+	echo '<th class="linecoldateend">'.$langs->trans('ExpenseReportDateEnd').'</th>';
251
+	echo '<th class="linecollimitamount">'.$langs->trans('ExpenseReportLimitAmount').'</th>';
252
+	echo '<th class="linecolrestrictive">'.$langs->trans('ExpenseReportRestrictive').'</th>';
253 253
 	echo '<th>&nbsp;</th>';
254 254
 	echo '</tr>';
255 255
 
@@ -259,16 +259,16 @@  discard block
 block discarded – undo
259 259
 	echo '<td class="linecolusergroup">';
260 260
 	if ($action == 'edit' && $object->id == $rule->id) {
261 261
 		$selected = ($object->is_for_all > 0) ? 'A' : ($object->fk_usergroup > 0 ? 'G' : 'U');
262
-		echo '<div class="float">' . $form->selectarray('apply_to', $tab_apply, $selected, 0) . '</div>';
263
-		echo '<div id="user" class="float">' . $form->select_dolusers($object->fk_user, 'fk_user') . '</div>';
264
-		echo '<div id="group" class="float">' . $form->select_dolgroups($object->fk_usergroup, 'fk_usergroup') . '</div>';
262
+		echo '<div class="float">'.$form->selectarray('apply_to', $tab_apply, $selected, 0).'</div>';
263
+		echo '<div id="user" class="float">'.$form->select_dolusers($object->fk_user, 'fk_user').'</div>';
264
+		echo '<div id="group" class="float">'.$form->select_dolgroups($object->fk_usergroup, 'fk_usergroup').'</div>';
265 265
 	} else {
266 266
 		if ($rule->is_for_all > 0) {
267 267
 			echo $tab_apply['A'];
268 268
 		} elseif ($rule->fk_usergroup > 0) {
269
-			echo $tab_apply['G'] . ' (' . $rule->getGroupLabel() . ')';
269
+			echo $tab_apply['G'].' ('.$rule->getGroupLabel().')';
270 270
 		} elseif ($rule->fk_user > 0) {
271
-			echo $tab_apply['U'] . ' (' . $rule->getUserName() . ')';
271
+			echo $tab_apply['U'].' ('.$rule->getUserName().')';
272 272
 		}
273 273
 	}
274 274
 	echo '</td>';
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	// Amount
323 323
 	echo '<td class="linecolamount">';
324 324
 	if ($action == 'edit' && $object->id == $rule->id) {
325
-		echo '<input type="text" value="' . price2num($object->amount) . '" name="amount" class="amount width50 right" />';
325
+		echo '<input type="text" value="'.price2num($object->amount).'" name="amount" class="amount width50 right" />';
326 326
 	} else {
327 327
 		echo price($rule->amount, 0, $langs, 1, -1, -1, $conf->currency);
328 328
 	}
@@ -340,11 +340,11 @@  discard block
 block discarded – undo
340 340
 
341 341
 	echo '<td class="center">';
342 342
 	if ($object->id != $rule->id) {
343
-		echo '<a class="editfielda paddingright paddingleft" href="' . $_SERVER['PHP_SELF'] . '?action=edit&token=' . newToken() . '&id=' . $rule->id . '">' . img_edit() . '</a>&nbsp;';
344
-		echo '<a class="paddingright paddingleft" href="' . $_SERVER['PHP_SELF'] . '?action=delete&token=' . newToken() . '&id=' . $rule->id . '">' . img_delete() . '</a>';
343
+		echo '<a class="editfielda paddingright paddingleft" href="'.$_SERVER['PHP_SELF'].'?action=edit&token='.newToken().'&id='.$rule->id.'">'.img_edit().'</a>&nbsp;';
344
+		echo '<a class="paddingright paddingleft" href="'.$_SERVER['PHP_SELF'].'?action=delete&token='.newToken().'&id='.$rule->id.'">'.img_delete().'</a>';
345 345
 	} else {
346
-		echo '<input type="submit" class="button button-edit" value="' . $langs->trans('Update') . '" />&nbsp;';
347
-		echo '<a href="' . $_SERVER['PHP_SELF'] . '" class="button button-cancel">' . $langs->trans("Cancel") . '</a>';
346
+		echo '<input type="submit" class="button button-edit" value="'.$langs->trans('Update').'" />&nbsp;';
347
+		echo '<a href="'.$_SERVER['PHP_SELF'].'" class="button button-cancel">'.$langs->trans("Cancel").'</a>';
348 348
 	}
349 349
 	echo '</td>';
350 350
 
Please login to merge, or discard this patch.
htdocs/admin/system/database-tables.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
  *	\brief      Page with information on database tables. Add also some maintenance action to convert tables.
25 25
  */
26 26
 
27
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
28
-	define('CSRFCHECK_WITH_TOKEN', '1');		// Force use of CSRF protection with tokens even for GET
27
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
28
+	define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
29 29
 }
30 30
 
31 31
 // Load Dolibarr environment
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 			//print $shortsqlfilename.' ';
115 115
 			$shortsqlfilename = preg_replace('/\-[a-z]+\./', '.', $value['name']);
116 116
 			$arrayoffiles[$value['name']] = $shortsqlfilename;
117
-			if ($value['name'] == $shortsqlfilename && ! preg_match('/\.key\.sql$/', $value['name'])) {
117
+			if ($value['name'] == $shortsqlfilename && !preg_match('/\.key\.sql$/', $value['name'])) {
118 118
 				// This is a sql file automatically created
119 119
 				$arrayoftablesautocreated[$value['name']] = $shortsqlfilename;
120 120
 			}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 				print '<tr class="oddeven">';
134 134
 
135
-				print '<td>'.($i+1).'</td>';
135
+				print '<td>'.($i + 1).'</td>';
136 136
 				print '<td><a href="dbtable.php?table='.$obj->Name.'">'.$obj->Name.'</a>';
137 137
 				$tablename = preg_replace('/^'.MAIN_DB_PREFIX.'/', 'llx_', $obj->Name);
138 138
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 			while ($i < $num) {
205 205
 				$row = $db->fetch_row($resql);
206 206
 				print '<tr class="oddeven">';
207
-				print '<td>'.($i+1).'</td>';
207
+				print '<td>'.($i + 1).'</td>';
208 208
 				print '<td>'.$row[0].'</td>';
209 209
 				print '<td class="right">'.$row[1].'</td>';
210 210
 				print '<td class="right">'.$row[2].'</td>';
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 				}
244 244
 
245 245
 				print '<tr class="oddeven">';
246
-				print '<td>'.($i+1).'</td>';
246
+				print '<td>'.($i + 1).'</td>';
247 247
 				print '<td>'.$row[0].'</td>';
248 248
 				print '<td>'.$count.'</td>';
249 249
 				print '</tr>';
Please login to merge, or discard this patch.
htdocs/admin/bomline_extrafields.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
  */
29 29
 
30 30
 require '../main.inc.php';
31
-require_once DOL_DOCUMENT_ROOT . '/bom/lib/bom.lib.php';
32
-require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
31
+require_once DOL_DOCUMENT_ROOT.'/bom/lib/bom.lib.php';
32
+require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
33 33
 
34 34
 // Load translation files required by the page
35 35
 $langs->loadLangs(array('mrp', 'admin'));
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
  * Actions
58 58
  */
59 59
 
60
-require DOL_DOCUMENT_ROOT . '/core/actions_extrafields.inc.php';
60
+require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php';
61 61
 
62 62
 
63 63
 /*
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 llxHeader('', $langs->trans("BOMsSetup"), $help_url);
69 69
 
70 70
 
71
-$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php?restore_lastsearch_values=1">' . $langs->trans("BackToModuleList") . '</a>';
71
+$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
72 72
 print load_fiche_titre($langs->trans("BOMsSetup"), $linkback, 'title_setup');
73 73
 
74 74
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
 print dol_get_fiche_head($head, 'bomline_extrafields', $langs->trans("ExtraFields"), -1, 'account');
78 78
 
79
-require DOL_DOCUMENT_ROOT . '/core/tpl/admin_extrafields_view.tpl.php';
79
+require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
80 80
 
81 81
 print dol_get_fiche_end();
82 82
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 // Buttons
85 85
 if ($action != 'create' && $action != 'edit') {
86 86
 	print '<div class="tabsAction">';
87
-	print '<a class="butAction reposition" href="' . $_SERVER["PHP_SELF"] . '?action=create">' . $langs->trans("NewAttribute") . '</a>';
87
+	print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
88 88
 	print "</div>";
89 89
 }
90 90
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	print '<br><div id="newattrib"></div>';
97 97
 	print load_fiche_titre($langs->trans('NewAttribute'));
98 98
 
99
-	require DOL_DOCUMENT_ROOT . '/core/tpl/admin_extrafields_add.tpl.php';
99
+	require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
100 100
 }
101 101
 
102 102
 /*
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	print "<br>";
107 107
 	print load_fiche_titre($langs->trans("FieldEdition", $attrname));
108 108
 
109
-	require DOL_DOCUMENT_ROOT . '/core/tpl/admin_extrafields_edit.tpl.php';
109
+	require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
110 110
 }
111 111
 
112 112
 // End of page
Please login to merge, or discard this patch.
htdocs/admin/const.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 print '<div class="div-table-responsive-no-min">';
200 200
 print '<table class="noborder centpercent">';
201 201
 print '<tr class="liste_titre">';
202
-print getTitleFieldOfList('Name', 0, $_SERVER['PHP_SELF'], 'name', '', $param, '', $sortfield, $sortorder, '') . "\n";
202
+print getTitleFieldOfList('Name', 0, $_SERVER['PHP_SELF'], 'name', '', $param, '', $sortfield, $sortorder, '')."\n";
203 203
 print getTitleFieldOfList("Value", 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder);
204 204
 print getTitleFieldOfList("Comment", 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder);
205
-print getTitleFieldOfList('DateModificationShort', 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ') . "\n";
205
+print getTitleFieldOfList('DateModificationShort', 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
206 206
 if (isModEnabled('multicompany') && !$user->entity) {
207
-	print getTitleFieldOfList('Entity', 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ') . "\n";
207
+	print getTitleFieldOfList('Entity', 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
208 208
 }
209 209
 print getTitleFieldOfList("", 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ');
210 210
 print "</tr>\n";
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
 // Limit to superadmin
228 228
 if (isModEnabled('multicompany') && !$user->entity) {
229 229
 	print '<td>';
230
-	print '<input type="text" class="flat" size="1" name="entity" value="' . $conf->entity . '">';
230
+	print '<input type="text" class="flat" size="1" name="entity" value="'.$conf->entity.'">';
231 231
 	print '</td>';
232 232
 	print '<td class="center">';
233 233
 } else {
234 234
 	print '<td class="center">';
235
-	print '<input type="hidden" name="entity" value="' . $conf->entity . '">';
235
+	print '<input type="hidden" name="entity" value="'.$conf->entity.'">';
236 236
 }
237 237
 print '<input type="submit" class="button button-add small" id="add" name="add" value="'.$langs->trans("Add").'">';
238 238
 print "</td>\n";
Please login to merge, or discard this patch.
htdocs/fourn/class/fournisseur.product.class.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	public $product_ref;
72 72
 
73 73
 	public $fourn_id; //supplier id
74
-	public $fourn_name;	// supplier name
74
+	public $fourn_name; // supplier name
75 75
 	public $fourn_qty; // quantity for price (can be set by get_buyprice)
76 76
 	public $fourn_pu; // unit price for quantity (can be set by get_buyprice)
77 77
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	public $fourn_remise_percent; // discount for quantity (percent)
80 80
 	public $fourn_remise; // discount for quantity (amount)
81 81
 
82
-	public $fourn_charges;	// when getDolGlobalString('PRODUCT_CHARGES') is set
82
+	public $fourn_charges; // when getDolGlobalString('PRODUCT_CHARGES') is set
83 83
 
84 84
 	public $product_fourn_id; // product-supplier id
85 85
 	public $product_fourn_entity;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	public $fk_availability;
96 96
 
97 97
 	public $fourn_unitprice;
98
-	public $fourn_unitprice_with_discount;	// not saved into database
98
+	public $fourn_unitprice_with_discount; // not saved into database
99 99
 	public $fourn_tva_tx;
100 100
 	public $fourn_tva_npr;
101 101
 
@@ -610,8 +610,8 @@  discard block
 block discarded – undo
610 610
 
611 611
 				$this->fk_product				= $obj->fk_product;
612 612
 				$this->product_id				= $obj->fk_product;
613
-				$this->product_ref				= $obj->product_ref;
614
-				$this->status					= $obj->status;
613
+				$this->product_ref = $obj->product_ref;
614
+				$this->status = $obj->status;
615 615
 				$this->status_buy				= $obj->status_buy;
616 616
 				$this->fourn_id					= $obj->fk_soc;
617 617
 				$this->fourn_ref				= $obj->ref_fourn; // deprecated
@@ -719,8 +719,8 @@  discard block
 block discarded – undo
719 719
 
720 720
 				$prodfourn->product_ref = $record["product_ref"];
721 721
 				$prodfourn->product_fourn_price_id = $record["product_fourn_pri_id"];
722
-				$prodfourn->status					= $record["status"];
723
-				$prodfourn->status_buy				= $record["status_buy"];
722
+				$prodfourn->status = $record["status"];
723
+				$prodfourn->status_buy = $record["status_buy"];
724 724
 				$prodfourn->product_fourn_id = $record["product_fourn_id"];
725 725
 				$prodfourn->product_fourn_entity = $record["entity"];
726 726
 				$prodfourn->ref_supplier			= $record["ref_fourn"];
@@ -1301,7 +1301,7 @@  discard block
 block discarded – undo
1301 1301
 		}
1302 1302
 
1303 1303
 		global $action;
1304
-		$hookmanager->initHooks(array($this->element . 'dao'));
1304
+		$hookmanager->initHooks(array($this->element.'dao'));
1305 1305
 		$parameters = array('id'=>$this->id, 'getnomurl' => &$result);
1306 1306
 		$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
1307 1307
 		if ($reshook > 0) {
Please login to merge, or discard this patch.
htdocs/fourn/commande/note.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
 
57 57
 // Permissions
58 58
 $permissionnote = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer")); // Used by the include of actions_setnotes.inc.php
59
-$usercancreate	= ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
60
-$permissiontoadd	= $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
59
+$usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
60
+$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
61 61
 
62 62
 
63 63
 /*
Please login to merge, or discard this patch.