Completed
Branch develop (351674)
by
unknown
16:46
created
htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		$maxfilesizearray = getMaxFileSizeArray();
173 173
 		$maxmin = $maxfilesizearray['maxmin'];
174 174
 		if ($maxmin > 0) {
175
-			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
175
+			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
176 176
 		}
177 177
 		$texte .= ' <input type="file" name="uploadfile">';
178 178
 		$texte .= '<input type="hidden" value="STOCK_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
266 266
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
267 267
 
268
-				$newfiletmp = $objectref . '_' . $newfiletmp;
268
+				$newfiletmp = $objectref.'_'.$newfiletmp;
269 269
 
270 270
 				// Get extension (ods or odt)
271 271
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -274,16 +274,16 @@  discard block
 block discarded – undo
274 274
 					if ($format == '1') {
275 275
 						$format = '%Y%m%d%H%M%S';
276 276
 					}
277
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
277
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
278 278
 				} else {
279
-					$filename = $newfiletmp . '.' . $newfileformat;
279
+					$filename = $newfiletmp.'.'.$newfileformat;
280 280
 				}
281
-				$file = $dir . '/' . $filename;
281
+				$file = $dir.'/'.$filename;
282 282
 
283 283
 				dol_mkdir($conf->product->dir_temp);
284 284
 				if (!is_writable($conf->product->dir_temp)) {
285 285
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->product->dir_temp);
286
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
286
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
287 287
 					return -1;
288 288
 				}
289 289
 
Please login to merge, or discard this patch.
htdocs/expensereport/list.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 
83 83
 
84 84
 // Load variable for pagination
85
-$limit 		= GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
85
+$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
86 86
 $sortfield	= GETPOST('sortfield', 'aZ09comma');
87 87
 $sortorder	= GETPOST('sortorder', 'aZ09comma');
88
-$page 		= GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOSTINT("page");
88
+$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOSTINT("page");
89 89
 if (empty($page) || $page == -1) {
90 90
 	$page = 0;
91 91
 }     // If $page is not defined, or '' or -1
@@ -104,30 +104,30 @@  discard block
 block discarded – undo
104 104
 
105 105
 $search_ref			= GETPOST('search_ref', 'alpha');
106 106
 $search_user		= GETPOST('search_user', 'intcomma');
107
-$search_amount_ht	= GETPOST('search_amount_ht', 'alpha');
107
+$search_amount_ht = GETPOST('search_amount_ht', 'alpha');
108 108
 $search_amount_vat	= GETPOST('search_amount_vat', 'alpha');
109 109
 $search_amount_ttc	= GETPOST('search_amount_ttc', 'alpha');
110
-$search_status		= (GETPOST('search_status', 'intcomma') != '' ? GETPOST('search_status', 'intcomma') : GETPOST('statut', 'intcomma'));
110
+$search_status = (GETPOST('search_status', 'intcomma') != '' ? GETPOST('search_status', 'intcomma') : GETPOST('statut', 'intcomma'));
111 111
 
112
-$search_date_startday		= GETPOSTINT('search_date_startday');
112
+$search_date_startday = GETPOSTINT('search_date_startday');
113 113
 $search_date_startmonth		= GETPOSTINT('search_date_startmonth');
114
-$search_date_startyear		= GETPOSTINT('search_date_startyear');
114
+$search_date_startyear = GETPOSTINT('search_date_startyear');
115 115
 $search_date_startendday	= GETPOSTINT('search_date_startendday');
116
-$search_date_startendmonth	= GETPOSTINT('search_date_startendmonth');
117
-$search_date_startendyear	= GETPOSTINT('search_date_startendyear');
118
-$search_date_start			= dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
116
+$search_date_startendmonth = GETPOSTINT('search_date_startendmonth');
117
+$search_date_startendyear = GETPOSTINT('search_date_startendyear');
118
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
119 119
 $search_date_startend		= dol_mktime(23, 59, 59, $search_date_startendmonth, $search_date_startendday, $search_date_startendyear);
120 120
 
121 121
 $search_date_endday			= GETPOSTINT('search_date_endday');
122 122
 $search_date_endmonth		= GETPOSTINT('search_date_endmonth');
123 123
 $search_date_endyear		= GETPOSTINT('search_date_endyear');
124
-$search_date_endendday		= GETPOSTINT('search_date_endendday');
124
+$search_date_endendday = GETPOSTINT('search_date_endendday');
125 125
 $search_date_endendmonth	= GETPOSTINT('search_date_endendmonth');
126 126
 $search_date_endendyear		= GETPOSTINT('search_date_endendyear');
127
-$search_date_end			= dol_mktime(0, 0, 0, $search_date_endmonth, $search_date_endday, $search_date_endyear);	// Use tzserver
128
-$search_date_endend			= dol_mktime(23, 59, 59, $search_date_endendmonth, $search_date_endendday, $search_date_endendyear);
127
+$search_date_end = dol_mktime(0, 0, 0, $search_date_endmonth, $search_date_endday, $search_date_endyear); // Use tzserver
128
+$search_date_endend = dol_mktime(23, 59, 59, $search_date_endendmonth, $search_date_endendday, $search_date_endendyear);
129 129
 
130
-$optioncss    = GETPOST('optioncss', 'alpha');
130
+$optioncss = GETPOST('optioncss', 'alpha');
131 131
 
132 132
 if ($search_status == '') {
133 133
 	$search_status = -1;
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
 }
583 583
 
584 584
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
585
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
585
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
586 586
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
587 587
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
588 588
 
Please login to merge, or discard this patch.
htdocs/adherents/list.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -43,48 +43,48 @@  discard block
 block discarded – undo
43 43
 
44 44
 
45 45
 // Get parameters
46
-$action 	= GETPOST('action', 'aZ09');
46
+$action = GETPOST('action', 'aZ09');
47 47
 $massaction = GETPOST('massaction', 'alpha');
48 48
 $show_files = GETPOSTINT('show_files');
49
-$confirm 	= GETPOST('confirm', 'alpha');
49
+$confirm = GETPOST('confirm', 'alpha');
50 50
 $cancel     = GETPOST('cancel', 'alpha');
51
-$toselect 	= GETPOST('toselect', 'array');
51
+$toselect = GETPOST('toselect', 'array');
52 52
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'memberslist'; // To manage different context of search
53 53
 $backtopage = GETPOST('backtopage', 'alpha');
54 54
 $optioncss 	= GETPOST('optioncss', 'aZ');
55
-$mode 		= GETPOST('mode', 'alpha');
55
+$mode = GETPOST('mode', 'alpha');
56 56
 
57 57
 // Search fields
58 58
 $search 			= GETPOST("search", 'alpha');
59 59
 $search_id = GETPOST('search_id', 'int');
60
-$search_ref 		= GETPOST("search_ref", 'alpha');
60
+$search_ref = GETPOST("search_ref", 'alpha');
61 61
 $search_lastname 	= GETPOST("search_lastname", 'alpha');
62
-$search_firstname 	= GETPOST("search_firstname", 'alpha');
62
+$search_firstname = GETPOST("search_firstname", 'alpha');
63 63
 $search_gender 		= GETPOST("search_gender", 'alpha');
64 64
 $search_civility 	= GETPOST("search_civility", 'alpha');
65 65
 $search_company 	= GETPOST('search_company', 'alphanohtml');
66
-$search_login 		= GETPOST("search_login", 'alpha');
66
+$search_login = GETPOST("search_login", 'alpha');
67 67
 $search_address 	= GETPOST("search_address", 'alpha');
68
-$search_zip 		= GETPOST("search_zip", 'alpha');
69
-$search_town 		= GETPOST("search_town", 'alpha');
70
-$search_state 		= GETPOST("search_state", 'alpha');  // county / departement / federal state
71
-$search_country 	= GETPOST("search_country", 'alpha');
68
+$search_zip = GETPOST("search_zip", 'alpha');
69
+$search_town = GETPOST("search_town", 'alpha');
70
+$search_state 		= GETPOST("search_state", 'alpha'); // county / departement / federal state
71
+$search_country = GETPOST("search_country", 'alpha');
72 72
 $search_phone 		= GETPOST("search_phone", 'alpha');
73 73
 $search_phone_perso = GETPOST("search_phone_perso", 'alpha');
74 74
 $search_phone_mobile = GETPOST("search_phone_mobile", 'alpha');
75
-$search_type 		= GETPOST("search_type", 'alpha');
75
+$search_type = GETPOST("search_type", 'alpha');
76 76
 $search_email 		= GETPOST("search_email", 'alpha');
77 77
 $search_categ 		= GETPOST("search_categ", 'intcomma');
78
-$search_morphy 		= GETPOST("search_morphy", 'alpha');
79
-$search_import_key  = trim(GETPOST("search_import_key", 'alpha'));
78
+$search_morphy = GETPOST("search_morphy", 'alpha');
79
+$search_import_key = trim(GETPOST("search_import_key", 'alpha'));
80 80
 
81
-$socid 		= GETPOSTINT('socid');
81
+$socid = GETPOSTINT('socid');
82 82
 if (GETPOSTINT('catid') && empty($search_categ)) {
83 83
 	$search_categ = GETPOSTINT('catid');
84 84
 }
85 85
 
86 86
 $search_filter 		= GETPOST("search_filter", 'alpha');
87
-$search_status 		= GETPOST("search_status", 'intcomma');  // status
87
+$search_status 		= GETPOST("search_status", 'intcomma'); // status
88 88
 $search_datec_start = dol_mktime(0, 0, 0, GETPOSTINT('search_datec_start_month'), GETPOSTINT('search_datec_start_day'), GETPOSTINT('search_datec_start_year'));
89 89
 $search_datec_end = dol_mktime(23, 59, 59, GETPOSTINT('search_datec_end_month'), GETPOSTINT('search_datec_end_day'), GETPOSTINT('search_datec_end_year'));
90 90
 $search_datem_start = dol_mktime(0, 0, 0, GETPOSTINT('search_datem_start_month'), GETPOSTINT('search_datem_start_day'), GETPOSTINT('search_datem_start_year'));
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	}
210 210
 }
211 211
 $arrayfields = dol_sort_array($arrayfields, 'position');
212
-'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';  // dol_sort_array looses type for Phan
212
+'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan
213 213
 //var_dump($arrayfields);exit;
214 214
 
215 215
 // Security check
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 $sqlfields = $sql; // $sql fields to remove for count total
438 438
 
439 439
 // SQL Alias adherent
440
-$sql .= " FROM ".MAIN_DB_PREFIX."adherent as d";  // maybe better to use ad (adh) instead of d
440
+$sql .= " FROM ".MAIN_DB_PREFIX."adherent as d"; // maybe better to use ad (adh) instead of d
441 441
 if (!empty($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) {
442 442
 	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element."_extrafields as ef on (d.rowid = ef.fk_object)";
443 443
 }
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 			if ($searchCategoryContactOperator == 0) {
463 463
 				$searchCategoryContactSqlList[] = " EXISTS (SELECT ck.fk_categorie FROM ".MAIN_DB_PREFIX."categorie_member as ck WHERE d.rowid = ck.fk_member AND ck.fk_categorie = ".((int) $searchCategoryContact).")";
464 464
 			} else {
465
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryContact);
465
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryContact);
466 466
 			}
467 467
 		}
468 468
 	}
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
 // Output page
630 630
 // --------------------------------------------------------------------
631 631
 
632
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');	// Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
632
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
633 633
 
634 634
 $arrayofselected = is_array($toselect) ? $toselect : array();
635 635
 
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
 }
826 826
 
827 827
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
828
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
828
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
829 829
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
830 830
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
831 831
 
Please login to merge, or discard this patch.
htdocs/comm/mailing/cibles.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 			}
393 393
 		}
394 394
 		if (empty($nbemail)) {
395
-			$nbemail .= ' '.img_warning($langs->trans('ToAddRecipientsChooseHere'));//.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>';
395
+			$nbemail .= ' '.img_warning($langs->trans('ToAddRecipientsChooseHere')); //.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>';
396 396
 		}
397 397
 		if ($text) {
398 398
 			// @phan-suppress-next-line PhanPluginSuspiciousParamPosition
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 		}
477 477
 		print '</div>';
478 478
 		print '<div class="tagtd">&nbsp;</div>';
479
-		print '</div>';	// End tr
479
+		print '</div>'; // End tr
480 480
 
481 481
 		clearstatcache();
482 482
 
@@ -547,12 +547,12 @@  discard block
 block discarded – undo
547 547
 					}
548 548
 					print img_object($langs->trans("EmailingTargetSelector").': '.get_class($obj), $obj->picto, 'class="valignmiddle width25 size15x"');
549 549
 					print '</div>';
550
-					print '<div class="tagtd valignmiddle">';	//  style="height: 4em"
550
+					print '<div class="tagtd valignmiddle">'; //  style="height: 4em"
551 551
 					print $obj->getDesc();
552 552
 					print '</div>';
553 553
 
554 554
 					try {
555
-						$obj->evenunsubscribe = $object->evenunsubscribe;	// Set flag to include/exclude email that has opt-out.
555
+						$obj->evenunsubscribe = $object->evenunsubscribe; // Set flag to include/exclude email that has opt-out.
556 556
 
557 557
 						$nbofrecipient = $obj->getNbOfRecipients('');
558 558
 					} catch (Exception $e) {
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
 		$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
606 606
 		print $hookmanager->resPrint;
607 607
 
608
-		print '</div>';	// End table
608
+		print '</div>'; // End table
609 609
 		print '</div>';
610 610
 
611 611
 		print '<br>';
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 				print '<td class="center nowraponall">';
898 898
 				if ($obj->status != $object::STATUS_DRAFT) {		// If status of target line is not draft
899 899
 					// Date sent
900
-					print $obj->date_envoi;		// @TODO Must store date in date format
900
+					print $obj->date_envoi; // @TODO Must store date in date format
901 901
 				}
902 902
 				print '</td>';
903 903
 
Please login to merge, or discard this patch.