Completed
Branch develop (83be39)
by
unknown
19:07
created
htdocs/ticket/class/ticket.class.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -261,14 +261,14 @@  discard block
 block discarded – undo
261 261
 	/**
262 262
 	 * Status
263 263
 	 */
264
-	const STATUS_NOT_READ = 0;			// Draft. Not take into account yet.
265
-	const STATUS_READ = 1;				// Ticket was read.
266
-	const STATUS_ASSIGNED = 2;			// Ticket was just assigned to someone. Not in progress yet.
267
-	const STATUS_IN_PROGRESS = 3;		// In progress
268
-	const STATUS_NEED_MORE_INFO = 5;	// Waiting requester feedback
269
-	const STATUS_WAITING = 7;			// On hold
270
-	const STATUS_CLOSED = 8;			// Closed - Solved
271
-	const STATUS_CANCELED = 9;			// Closed - Not solved
264
+	const STATUS_NOT_READ = 0; // Draft. Not take into account yet.
265
+	const STATUS_READ = 1; // Ticket was read.
266
+	const STATUS_ASSIGNED = 2; // Ticket was just assigned to someone. Not in progress yet.
267
+	const STATUS_IN_PROGRESS = 3; // In progress
268
+	const STATUS_NEED_MORE_INFO = 5; // Waiting requester feedback
269
+	const STATUS_WAITING = 7; // On hold
270
+	const STATUS_CLOSED = 8; // Closed - Solved
271
+	const STATUS_CANCELED = 9; // Closed - Not solved
272 272
 
273 273
 
274 274
 	/**
@@ -1597,9 +1597,9 @@  discard block
 block discarded – undo
1597 1597
 		}
1598 1598
 		// show categories for this record only in ajax to not overload lists
1599 1599
 		if (isModEnabled('category') && !$nofetch) {
1600
-			require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
1600
+			require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
1601 1601
 			$form = new Form($this->db);
1602
-			$datas['categories'] = '<br>' . $form->showCategories($this->id, Categorie::TYPE_TICKET, 1);
1602
+			$datas['categories'] = '<br>'.$form->showCategories($this->id, Categorie::TYPE_TICKET, 1);
1603 1603
 		}
1604 1604
 
1605 1605
 		return $datas;
@@ -1838,7 +1838,7 @@  discard block
 block discarded – undo
1838 1838
 		// Insert entry into agenda with code 'TICKET_MSG'
1839 1839
 		include_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
1840 1840
 		$actioncomm = new ActionComm($this->db);
1841
-		$actioncomm->type_code = 'AC_OTH_AUTO';	// This is not an entry that must appears into manual calendar but only into CRM calendar
1841
+		$actioncomm->type_code = 'AC_OTH_AUTO'; // This is not an entry that must appears into manual calendar but only into CRM calendar
1842 1842
 		$actioncomm->code = 'TICKET_MSG';
1843 1843
 		if ($this->private) {
1844 1844
 			$actioncomm->code = 'TICKET_MSG_PRIVATE';
@@ -1852,7 +1852,7 @@  discard block
 block discarded – undo
1852 1852
 		$actioncomm->socid = $this->socid;
1853 1853
 		$actioncomm->label = $this->subject;
1854 1854
 		$actioncomm->note_private = $this->message;
1855
-		$actioncomm->userassigned = array($user->id => array('id' => $user->id,'transparency' => 0));
1855
+		$actioncomm->userassigned = array($user->id => array('id' => $user->id, 'transparency' => 0));
1856 1856
 		$actioncomm->userownerid = $user->id;
1857 1857
 		$actioncomm->datep = $now;
1858 1858
 		$actioncomm->percentage = -1; // percentage is not relevant for punctual events
@@ -2427,7 +2427,7 @@  discard block
 block discarded – undo
2427 2427
 						'email' => $obj->email,
2428 2428
 						'rowid' => $obj->rowid,
2429 2429
 						'code' => $obj->code,
2430
-						'libelle' => $labelType,		// deprecated, replaced with labeltype
2430
+						'libelle' => $labelType, // deprecated, replaced with labeltype
2431 2431
 						'labeltype' => $labelType,
2432 2432
 						'status' => $obj->statuslink,
2433 2433
 						'statuscontact' => $obj->statuscontact,
@@ -2512,7 +2512,7 @@  discard block
 block discarded – undo
2512 2512
 			if (is_resource($handle)) {
2513 2513
 				while (($file = readdir($handle)) !== false) {
2514 2514
 					if (!utf8_check($file)) {
2515
-						$file = mb_convert_encoding($file, 'UTF-8', 'ISO-8859-1');	// To be sure data is stored in UTF8 in memory
2515
+						$file = mb_convert_encoding($file, 'UTF-8', 'ISO-8859-1'); // To be sure data is stored in UTF8 in memory
2516 2516
 					}
2517 2517
 					if (dol_is_file($dir.$file)) {
2518 2518
 						return true;
@@ -2550,7 +2550,7 @@  discard block
 block discarded – undo
2550 2550
 		$formmail->trackid = (is_null($forcetrackid) ? 'tic'.$this->id : '');
2551 2551
 		$attachedfiles = $formmail->get_attached_files();
2552 2552
 
2553
-		$filepath = $attachedfiles['paths'];	// path is for example user->dir_temp.'/'.$user->id.'/'...
2553
+		$filepath = $attachedfiles['paths']; // path is for example user->dir_temp.'/'.$user->id.'/'...
2554 2554
 		$filename = $attachedfiles['names'];
2555 2555
 		$mimetype = $attachedfiles['mimes'];
2556 2556
 
@@ -2940,7 +2940,7 @@  discard block
 block discarded – undo
2940 2940
 
2941 2941
 								// If public interface is not enable, use link to internal page into mail
2942 2942
 								$url_public_ticket = (getDolGlobalInt('TICKET_ENABLE_PUBLIC_INTERFACE') ?
2943
-										(getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE') !== '' ? getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE') . '/view.php' : dol_buildpath('/public/ticket/view.php', 2)) : dol_buildpath('/ticket/card.php', 2)).'?track_id='.urlencode($object->track_id);
2943
+										(getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE') !== '' ? getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE').'/view.php' : dol_buildpath('/public/ticket/view.php', 2)) : dol_buildpath('/ticket/card.php', 2)).'?track_id='.urlencode($object->track_id);
2944 2944
 
2945 2945
 								$message .= '<br>'.$langs->trans('TicketNewEmailBodyInfosTrackUrlCustomer').' : <a href="'.$url_public_ticket.'">'.$object->track_id.'</a><br>';
2946 2946
 
@@ -2977,7 +2977,7 @@  discard block
 block discarded – undo
2977 2977
 									if ($result) {
2978 2978
 										// update last_msg_sent date (for last message sent to external users)
2979 2979
 										$this->date_last_msg_sent = dol_now();
2980
-										$this->update($user, 1);	// disable trigger when updating date_last_msg_sent. sendTicketMessageByEmail already create an event in actioncomm table.
2980
+										$this->update($user, 1); // disable trigger when updating date_last_msg_sent. sendTicketMessageByEmail already create an event in actioncomm table.
2981 2981
 									}
2982 2982
 								}
2983 2983
 							}
Please login to merge, or discard this patch.
htdocs/admin/supplier_payment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 $action = GETPOST('action', 'aZ09');
42 42
 $value = GETPOST('value', 'alpha');
43
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
43
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
44 44
 
45 45
 $label = GETPOST('label', 'alpha');
46 46
 $scandir = GETPOST('scandir', 'alpha');
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 							print '</td>'."\n";
269 269
 
270 270
 							print '<td class="center">';
271
-							if (getDolGlobalString('SUPPLIER_PAYMENT_ADDON') == $file || getDolGlobalString('SUPPLIER_PAYMENT_ADDON') . '.php' == $file) {
271
+							if (getDolGlobalString('SUPPLIER_PAYMENT_ADDON') == $file || getDolGlobalString('SUPPLIER_PAYMENT_ADDON').'.php' == $file) {
272 272
 								print img_picto($langs->trans("Activated"), 'switch_on');
273 273
 							} else {
274 274
 								print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&value='.preg_replace('/\.php$/', '', $file).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 					print "</td>\n";
362 362
 					print "<td>\n";
363 363
 					if (method_exists($module, 'info')) {
364
-						print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
364
+						print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
365 365
 					} else {
366 366
 						print $module->description;
367 367
 					}
Please login to merge, or discard this patch.
htdocs/admin/workstation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 // Parameters
39 39
 $action = GETPOST('action', 'aZ09');
40 40
 $backtopage = GETPOST('backtopage', 'alpha');
41
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
41
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
42 42
 
43 43
 $value = GETPOST('value', 'alpha');
44 44
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 										print(empty($module->name) ? $name : $module->name);
414 414
 										print "</td><td>\n";
415 415
 										if (method_exists($module, 'info')) {
416
-											print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
416
+											print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
417 417
 										} else {
418 418
 											print $module->description;
419 419
 										}
Please login to merge, or discard this patch.
htdocs/admin/propal.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 $action = GETPOST('action', 'aZ09');
48 48
 $value = GETPOST('value', 'alpha');
49
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
49
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
50 50
 
51 51
 $label = GETPOST('label', 'alpha');
52 52
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		setEventMessages($langs->trans('Error'), null, 'errors');
205 205
 	} else {
206 206
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
207
-		header("Location: " . $_SERVER["PHP_SELF"]);
207
+		header("Location: ".$_SERVER["PHP_SELF"]);
208 208
 		exit();
209 209
 	}
210 210
 } elseif (preg_match('/del_(.*)/', $action, $reg)) {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 		setEventMessages($langs->trans('Error'), null, 'errors');
220 220
 	} else {
221 221
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
222
-		header("Location: " . $_SERVER["PHP_SELF"]);
222
+		header("Location: ".$_SERVER["PHP_SELF"]);
223 223
 		exit();
224 224
 	}
225 225
 }
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 								print(empty($module->name) ? $name : $module->name);
427 427
 								print "</td><td>\n";
428 428
 								if (method_exists($module, 'info')) {
429
-									print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
429
+									print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
430 430
 								} else {
431 431
 									print $module->description;
432 432
 								}
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 print '<tr class="oddeven">';
621 621
 print '<td>'.$langs->trans("DefaultProposalDurationValidity").'</td>';
622 622
 print '<td width="60" align="center">';
623
-print "<input size=\"3\" class=\"flat\" type=\"text\" name=\"PROPALE_VALIDITY_DURATION\" value=\"" . getDolGlobalString('PROPALE_VALIDITY_DURATION')."\"></td>";
623
+print "<input size=\"3\" class=\"flat\" type=\"text\" name=\"PROPALE_VALIDITY_DURATION\" value=\"".getDolGlobalString('PROPALE_VALIDITY_DURATION')."\"></td>";
624 624
 print '</tr>';
625 625
 
626 626
 $substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
Please login to merge, or discard this patch.
htdocs/admin/contract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 $action = GETPOST('action', 'aZ09');
42 42
 $value = GETPOST('value', 'alpha');
43
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
43
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
44 44
 
45 45
 $label = GETPOST('label', 'alpha');
46 46
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 		setEventMessages($langs->trans('Error'), null, 'errors');
177 177
 	} else {
178 178
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
179
-		header("Location: " . $_SERVER["PHP_SELF"]);
179
+		header("Location: ".$_SERVER["PHP_SELF"]);
180 180
 		exit();
181 181
 	}
182 182
 } elseif (preg_match('/del_(.*)/', $action, $reg)) {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 		setEventMessages($langs->trans('Error'), null, 'errors');
192 192
 	} else {
193 193
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
194
-		header("Location: " . $_SERVER["PHP_SELF"]);
194
+		header("Location: ".$_SERVER["PHP_SELF"]);
195 195
 		exit();
196 196
 	}
197 197
 }
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 								print(empty($module->name) ? $name : $module->name);
401 401
 								print "</td><td>\n";
402 402
 								if (method_exists($module, 'info')) {
403
-									print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
403
+									print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
404 404
 								} else {
405 405
 									print $module->description;
406 406
 								}
Please login to merge, or discard this patch.
htdocs/admin/knowledgemanagement.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $action = GETPOST('action', 'aZ09');
41 41
 $backtopage = GETPOST('backtopage', 'alpha');
42 42
 $value = GETPOST('value', 'alpha');
43
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
43
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
44 44
 
45 45
 $label = GETPOST('label', 'alpha');
46 46
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -218,22 +218,22 @@  discard block
 block discarded – undo
218 218
 		if ($val['enabled'] == 1) {
219 219
 			$setupnotempty++;
220 220
 			print '<tr class="oddeven"><td>';
221
-			$tooltiphelp = (($langs->trans($constname . 'Tooltip') != $constname . 'Tooltip') ? $langs->trans($constname . 'Tooltip') : '');
221
+			$tooltiphelp = (($langs->trans($constname.'Tooltip') != $constname.'Tooltip') ? $langs->trans($constname.'Tooltip') : '');
222 222
 			print '<span id="helplink'.$constname.'" class="spanforparamtooltip">'.$form->textwithpicto($langs->trans($constname), $tooltiphelp, 1, 'info', '', 0, 3, 'tootips'.$constname).'</span>';
223 223
 			print '</td><td>';
224 224
 
225 225
 			if ($val['type'] == 'textarea') {
226
-				print '<textarea class="flat" name="' . $constname . '" id="' . $constname . '" cols="50" rows="5" wrap="soft">' . "\n";
226
+				print '<textarea class="flat" name="'.$constname.'" id="'.$constname.'" cols="50" rows="5" wrap="soft">'."\n";
227 227
 				print getDolGlobalString($constname);
228 228
 				print "</textarea>\n";
229 229
 			} elseif ($val['type'] == 'html') {
230
-				require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
230
+				require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
231 231
 				$doleditor = new DolEditor($constname, getDolGlobalString($constname), '', 160, 'dolibarr_notes', '', false, false, isModEnabled('fckeditor'), ROWS_5, '90%');
232 232
 				$doleditor->Create();
233 233
 			} elseif ($val['type'] == 'yesno') {
234 234
 				print $form->selectyesno($constname, getDolGlobalString($constname), 1);
235 235
 			} elseif (preg_match('/emailtemplate:/', $val['type'])) {
236
-				include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php';
236
+				include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
237 237
 				$formmail = new FormMail($db);
238 238
 
239 239
 				$tmp = explode(':', $val['type']);
@@ -245,10 +245,10 @@  discard block
 block discarded – undo
245 245
 						//var_dump($modelmail);
246 246
 						$moreonlabel = '';
247 247
 						if (!empty($arrayofmessagename[$modelmail->label])) {
248
-							$moreonlabel = ' <span class="opacitymedium">(' . $langs->trans("SeveralLangugeVariatFound") . ')</span>';
248
+							$moreonlabel = ' <span class="opacitymedium">('.$langs->trans("SeveralLangugeVariatFound").')</span>';
249 249
 						}
250 250
 						// The 'label' is the key that is unique if we exclude the language
251
-						$arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace('/\(|\)/', '', $modelmail->label)) . $moreonlabel;
251
+						$arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace('/\(|\)/', '', $modelmail->label)).$moreonlabel;
252 252
 					}
253 253
 				}
254 254
 				print $form->selectarray($constname, $arrayofmessagename, getDolGlobalString($constname), 'None', 0, 0, '', 0, 0, 0, '', '', 1);
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 			if ($val['enabled'] == 1) {
287 287
 				$setupnotempty++;
288 288
 				print '<tr class="oddeven"><td>';
289
-				$tooltiphelp = (($langs->trans($constname . 'Tooltip') != $constname . 'Tooltip') ? $langs->trans($constname . 'Tooltip') : '');
289
+				$tooltiphelp = (($langs->trans($constname.'Tooltip') != $constname.'Tooltip') ? $langs->trans($constname.'Tooltip') : '');
290 290
 				print $form->textwithpicto($langs->trans($constname), $tooltiphelp);
291 291
 				print '</td><td>';
292 292
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 				} elseif ($val['type'] == 'yesno') {
298 298
 					print ajax_constantonoff($constname);
299 299
 				} elseif (preg_match('/emailtemplate:/', $val['type'])) {
300
-					include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php';
300
+					include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
301 301
 					$formmail = new FormMail($db);
302 302
 
303 303
 					$tmp = explode(':', $val['type']);
@@ -316,9 +316,9 @@  discard block
 block discarded – undo
316 316
 					$ways = $c->print_all_ways(' &gt;&gt; ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
317 317
 					$toprint = array();
318 318
 					foreach ($ways as $way) {
319
-						$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>';
319
+						$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"'.($c->color ? ' style="background: #'.$c->color.';"' : ' style="background: #bbb"').'>'.$way.'</li>';
320 320
 					}
321
-					print '<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">' . implode(' ', $toprint) . '</ul></div>';
321
+					print '<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">'.implode(' ', $toprint).'</ul></div>';
322 322
 				} elseif (preg_match('/thirdparty_type/', $val['type'])) {
323 323
 					if (getDolGlobalString($constname) == 2) {
324 324
 						print $langs->trans("Prospect");
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
 										print(empty($module->name) ? $name : $module->name);
540 540
 										print "</td><td>\n";
541 541
 										if (method_exists($module, 'info')) {
542
-											print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
542
+											print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
543 543
 										} else {
544 544
 											print $module->description;
545 545
 										}
Please login to merge, or discard this patch.
htdocs/admin/holiday.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 $action = GETPOST('action', 'aZ09');
43 43
 $value = GETPOST('value', 'alpha');
44
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
44
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
45 45
 
46 46
 $label = GETPOST('label', 'alpha');
47 47
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 									print(empty($module->name) ? $name : $module->name);
364 364
 									print "</td><td>\n";
365 365
 									if (method_exists($module, 'info')) {
366
-										print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
366
+										print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
367 367
 									} else {
368 368
 										print $module->description;
369 369
 									}
Please login to merge, or discard this patch.
htdocs/admin/fichinter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 $action = GETPOST('action', 'aZ09');
48 48
 $value = GETPOST('value', 'alpha');
49
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
49
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
50 50
 
51 51
 $label = GETPOST('label', 'alpha');
52 52
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 							print(empty($module->name) ? $name : $module->name);
450 450
 							print "</td><td>\n";
451 451
 							if (method_exists($module, 'info')) {
452
-								print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
452
+								print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
453 453
 							} else {
454 454
 								print $module->description;
455 455
 							}
Please login to merge, or discard this patch.
htdocs/admin/order.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 $action = GETPOST('action', 'aZ09');
50 50
 $value = GETPOST('value', 'alpha');
51
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
51
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
52 52
 
53 53
 $label = GETPOST('label', 'alpha');
54 54
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 		setEventMessages($langs->trans('Error'), null, 'errors');
200 200
 	} else {
201 201
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
202
-		header("Location: " . $_SERVER["PHP_SELF"]);
202
+		header("Location: ".$_SERVER["PHP_SELF"]);
203 203
 		exit();
204 204
 	}
205 205
 } elseif (preg_match('/del_(.*)/', $action, $reg)) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 		setEventMessages($langs->trans('Error'), null, 'errors');
215 215
 	} else {
216 216
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
217
-		header("Location: " . $_SERVER["PHP_SELF"]);
217
+		header("Location: ".$_SERVER["PHP_SELF"]);
218 218
 		exit();
219 219
 	}
220 220
 }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 								print(empty($module->name) ? $name : $module->name);
452 452
 								print "</td><td>\n";
453 453
 								if (method_exists($module, 'info')) {
454
-									print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
454
+									print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
455 455
 								} else {
456 456
 									print $module->description;
457 457
 								}
@@ -691,8 +691,8 @@  discard block
 block discarded – undo
691 691
 
692 692
 // Disallow to classify billed an order without invoice, only if module invoice is enable
693 693
 if (isModEnabled('invoice')) {
694
-	print '<tr class="oddeven"><td>'.$langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoice"). '&nbsp;' ;
695
-	print $form->textwithpicto('', $langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoiceHelp"), 1, 'help') . '</td>';
694
+	print '<tr class="oddeven"><td>'.$langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoice").'&nbsp;';
695
+	print $form->textwithpicto('', $langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoiceHelp"), 1, 'help').'</td>';
696 696
 	print '<td class="left" colspan="2">';
697 697
 	print ajax_constantonoff('ORDER_DISABLE_CLASSIFY_BILLED_FROM_ORDER');
698 698
 	print '</td></tr>';
Please login to merge, or discard this patch.