Completed
Branch develop (5eff8e)
by
unknown
19:33
created
htdocs/comm/action/card.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 $offsetunit = GETPOST('offsetunittype_duration', 'aZ09');
75 75
 $remindertype = GETPOST('selectremindertype', 'aZ09');
76 76
 $modelmail = GETPOSTINT('actioncommsendmodel_mail');
77
-$complete = GETPOST('complete', 'alpha');	// 'na' must be allowed
77
+$complete = GETPOST('complete', 'alpha'); // 'na' must be allowed
78 78
 $private = GETPOST('private', 'alphanohtml');
79 79
 if ($complete == 'na' || $complete == -2) {
80 80
 	$complete = -1;
@@ -612,12 +612,12 @@  discard block
 block discarded – undo
612 612
 			if ($selectedrecurrulefreq == 'WEEKLY' && !empty($selectedrecurrulebyday)) {
613 613
 				$firstdatearray = dol_get_first_day_week(GETPOSTINT("apday"), GETPOSTINT("apmonth"), GETPOSTINT("apyear"));
614 614
 				$datep = dol_mktime($fulldayevent ? '00' : GETPOSTINT("aphour"), $fulldayevent ? '00' : GETPOSTINT("apmin"), $fulldayevent ? '00' : GETPOSTINT("apsec"), $firstdatearray['month'], $firstdatearray['first_day'], $firstdatearray['year'], $tzforfullday ? $tzforfullday : 'tzuserrel');
615
-				$datep = dol_time_plus_duree($datep, $selectedrecurrulebyday + 6, 'd');//We begin the week after
615
+				$datep = dol_time_plus_duree($datep, $selectedrecurrulebyday + 6, 'd'); //We begin the week after
616 616
 				$dayoffset = 7;
617 617
 				$monthoffset = 0;
618 618
 			} elseif ($selectedrecurrulefreq == 'MONTHLY' && !empty($selectedrecurrulebymonthday)) {
619 619
 				$firstday = $selectedrecurrulebymonthday;
620
-				$firstmonth = GETPOST("apday") > $selectedrecurrulebymonthday ? GETPOSTINT("apmonth") + 1 : GETPOSTINT("apmonth");//We begin the week after
620
+				$firstmonth = GETPOST("apday") > $selectedrecurrulebymonthday ? GETPOSTINT("apmonth") + 1 : GETPOSTINT("apmonth"); //We begin the week after
621 621
 				$datep = dol_mktime($fulldayevent ? '00' : GETPOSTINT("aphour"), $fulldayevent ? '00' : GETPOSTINT("apmin"), $fulldayevent ? '00' : GETPOSTINT("apsec"), $firstmonth, $firstday, GETPOSTINT("apyear"), $tzforfullday ? $tzforfullday : 'tzuserrel');
622 622
 				$dayoffset = 0;
623 623
 				$monthoffset = 1;
@@ -722,9 +722,9 @@  discard block
 block discarded – undo
722 722
 
723 723
 				// increment date for recurrent events
724 724
 				$datep = dol_time_plus_duree($datep, $dayoffset, 'd');
725
-				$datep = dol_time_plus_duree($datep, $monthoffset, 'm');  // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
725
+				$datep = dol_time_plus_duree($datep, $monthoffset, 'm'); // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
726 726
 				$datef = dol_time_plus_duree($datef, $dayoffset, 'd');
727
-				$datef = dol_time_plus_duree($datef, $monthoffset, 'm');  // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
727
+				$datef = dol_time_plus_duree($datef, $monthoffset, 'm'); // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
728 728
 			}
729 729
 		}
730 730
 		if (!empty($backtopage) && !$error) {
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
1066 1066
 if (empty($reshook) && GETPOST('actionmove', 'alpha') == 'mupdate') {
1067 1067
 	$error = 0;
1068 1068
 
1069
-	$shour = (int) dol_print_date($object->datep, "%H", 'tzuserrel');		// We take the date visible by user $newdate is also date visible by user.
1069
+	$shour = (int) dol_print_date($object->datep, "%H", 'tzuserrel'); // We take the date visible by user $newdate is also date visible by user.
1070 1070
 	$smin = (int) dol_print_date($object->datep, "%M", 'tzuserrel');
1071 1071
 
1072 1072
 	$newdate = GETPOST('newdate', 'alpha');
@@ -1276,7 +1276,7 @@  discard block
 block discarded – undo
1276 1276
 		$default = getDolGlobalString('AGENDA_USE_EVENT_TYPE_DEFAULT', 'AC_RDV');
1277 1277
 		print img_picto($langs->trans("ActionType"), 'square', 'class="fawidth30 inline-block" style="color: #ddd;"');
1278 1278
 		$selectedvalue = GETPOSTISSET("actioncode") ? GETPOST("actioncode", 'aZ09') : ($object->type_code ? $object->type_code : $default);
1279
-		print $formactions->select_type_actions($selectedvalue, "actioncode", "systemauto", 0, -1, 0, 1);	// TODO Replace 0 with -2 in onlyautoornot
1279
+		print $formactions->select_type_actions($selectedvalue, "actioncode", "systemauto", 0, -1, 0, 1); // TODO Replace 0 with -2 in onlyautoornot
1280 1280
 		print '</td></tr>';
1281 1281
 	}
1282 1282
 
@@ -1607,7 +1607,7 @@  discard block
 block discarded – undo
1607 1607
 		}
1608 1608
 		//var_dump('origin='.$origin.' originid='.$originid.' hasPermissionOnLinkedObject='.$hasPermissionOnLinkedObject);
1609 1609
 
1610
-		if (! in_array($origin, array('societe', 'project', 'task', 'user'))) {
1610
+		if (!in_array($origin, array('societe', 'project', 'task', 'user'))) {
1611 1611
 			// We do not use link for object that already contains a hard coded field to make links with agenda events
1612 1612
 			print '<tr><td class="titlefieldcreate">'.$langs->trans("LinkedObject").'</td>';
1613 1613
 			print '<td colspan="3">';
@@ -1758,7 +1758,7 @@  discard block
 block discarded – undo
1758 1758
 			$object->socpeopleassigned[$id] = array('id' => $tmpid);
1759 1759
 		}
1760 1760
 		$object->contact_id   = GETPOSTINT("contactid");
1761
-		$object->fk_project  = GETPOSTINT("projectid");
1761
+		$object->fk_project = GETPOSTINT("projectid");
1762 1762
 
1763 1763
 		$object->note_private = GETPOST("note", 'restricthtml');
1764 1764
 	}
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
 		if ($backtopage) {
1835 1835
 			print '<input type="hidden" name="backtopage" value="'.($backtopage != '1' ? $backtopage : '').'">';
1836 1836
 		}
1837
-		if (!getDolGlobalString('AGENDA_USE_EVENT_TYPE') && ! preg_match('/^TICKET_MSG_PRIVATE/', $object->code)) {
1837
+		if (!getDolGlobalString('AGENDA_USE_EVENT_TYPE') && !preg_match('/^TICKET_MSG_PRIVATE/', $object->code)) {
1838 1838
 			print '<input type="hidden" name="actioncode" value="'.$object->type_code.'">';
1839 1839
 		}
1840 1840
 
@@ -2222,7 +2222,7 @@  discard block
 block discarded – undo
2222 2222
                    })';
2223 2223
 			print '</script>'."\n";
2224 2224
 
2225
-			print '</div>';		// End of div for reminderparameters
2225
+			print '</div>'; // End of div for reminderparameters
2226 2226
 		}
2227 2227
 
2228 2228
 		print dol_get_fiche_end();
Please login to merge, or discard this patch.
htdocs/comm/mailing/card.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -299,15 +299,15 @@  discard block
 block discarded – undo
299 299
 								$substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN'), '2');
300 300
 								$substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN'), '2');
301 301
 							} else {
302
-								$substitutionarray['__SECUREKEYPAYMENT_MEMBER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'member'.$obj->source_id, '2');
303
-								$substitutionarray['__SECUREKEYPAYMENT_DONATION__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'donation'.$obj->source_id, '2');
304
-								$substitutionarray['__SECUREKEYPAYMENT_ORDER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'order'.$obj->source_id, '2');
305
-								$substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'invoice'.$obj->source_id, '2');
306
-								$substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'contractline'.$obj->source_id, '2');
302
+								$substitutionarray['__SECUREKEYPAYMENT_MEMBER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'member'.$obj->source_id, '2');
303
+								$substitutionarray['__SECUREKEYPAYMENT_DONATION__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'donation'.$obj->source_id, '2');
304
+								$substitutionarray['__SECUREKEYPAYMENT_ORDER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'order'.$obj->source_id, '2');
305
+								$substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'invoice'.$obj->source_id, '2');
306
+								$substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'contractline'.$obj->source_id, '2');
307 307
 							}
308 308
 						}
309 309
 						if (getDolGlobalString('MEMBER_ENABLE_PUBLIC')) {
310
-							$substitutionarray['__PUBLICLINK_NEWMEMBERFORM__'] = '<a target="_blank" rel="noopener noreferrer" href="'.DOL_MAIN_URL_ROOT.'/public/members/new.php'.((isModEnabled('multicompany')) ? '?entity='.$conf->entity : '').'">'.$langs->trans('BlankSubscriptionForm'). '</a>';
310
+							$substitutionarray['__PUBLICLINK_NEWMEMBERFORM__'] = '<a target="_blank" rel="noopener noreferrer" href="'.DOL_MAIN_URL_ROOT.'/public/members/new.php'.((isModEnabled('multicompany')) ? '?entity='.$conf->entity : '').'">'.$langs->trans('BlankSubscriptionForm').'</a>';
311 311
 						}
312 312
 						/* For backward compatibility, deprecated */
313 313
 						if (isModEnabled('paypal') && getDolGlobalString('PAYPAL_SECURITY_TOKEN')) {
@@ -316,25 +316,25 @@  discard block
 block discarded – undo
316 316
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
317 317
 								$substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), '2');
318 318
 							} else {
319
-								$substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'membersubscription'.$obj->source_id, '2');
319
+								$substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'membersubscription'.$obj->source_id, '2');
320 320
 							}
321 321
 
322 322
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
323 323
 								$substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), '2');
324 324
 							} else {
325
-								$substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'order'.$obj->source_id, '2');
325
+								$substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'order'.$obj->source_id, '2');
326 326
 							}
327 327
 
328 328
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
329 329
 								$substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), '2');
330 330
 							} else {
331
-								$substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'invoice'.$obj->source_id, '2');
331
+								$substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'invoice'.$obj->source_id, '2');
332 332
 							}
333 333
 
334 334
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
335 335
 								$substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), '2');
336 336
 							} else {
337
-								$substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'contractline'.$obj->source_id, '2');
337
+								$substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'contractline'.$obj->source_id, '2');
338 338
 							}
339 339
 						}
340 340
 						//$substitutionisok=true;
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
 	}
471 471
 
472 472
 	// Action send test emailing
473
-	if ($action == 'send' && ! $cancel && $permissiontovalidatesend) {
473
+	if ($action == 'send' && !$cancel && $permissiontovalidatesend) {
474 474
 		$error = 0;
475 475
 
476 476
 		$upload_dir = $conf->mailing->dir_output."/".get_exdir($object->id, 2, 0, 1, $object, 'mailing');
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
 	$mesgs = array();
548 548
 	// Action add emailing
549 549
 	if ($action == 'add' && $permissiontocreate) {
550
-		$object->messtype       = (string) GETPOST("messtype");
550
+		$object->messtype = (string) GETPOST("messtype");
551 551
 		if ($object->messtype == 'sms') {
552 552
 			$object->email_from     = (string) GETPOST("from_phone", 'alphawithlgt'); // Must allow 'name <email>'
553 553
 		} else {
@@ -1511,7 +1511,7 @@  discard block
 block discarded – undo
1511 1511
 				$maxfilesizearray = getMaxFileSizeArray();
1512 1512
 				$maxmin = $maxfilesizearray['maxmin'];
1513 1513
 				if ($maxmin > 0) {
1514
-					$out .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
1514
+					$out .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
1515 1515
 				}
1516 1516
 				$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
1517 1517
 				$out .= ' ';
Please login to merge, or discard this patch.
htdocs/comm/mailing/cibles.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
 			}
439 439
 		}
440 440
 		if (empty($nbemail)) {
441
-			$nbemail .= ' '.img_warning($langs->trans('ToAddRecipientsChooseHere'));//.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>';
441
+			$nbemail .= ' '.img_warning($langs->trans('ToAddRecipientsChooseHere')); //.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>';
442 442
 		}
443 443
 		if ($text) {
444 444
 			// @phan-suppress-next-line PhanPluginSuspiciousParamPosition
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 		}
523 523
 		print '</div>';
524 524
 		print '<div class="tagtd">&nbsp;</div>';
525
-		print '</div>';	// End tr
525
+		print '</div>'; // End tr
526 526
 
527 527
 		clearstatcache();
528 528
 
@@ -594,14 +594,14 @@  discard block
 block discarded – undo
594 594
 					}
595 595
 					print img_object($langs->trans("EmailingTargetSelector").': '.get_class($obj), $obj->picto, 'class="valignmiddle width25 size15x"');
596 596
 					print '</div>';
597
-					print '<div class="tagtd valignmiddle">';	//  style="height: 4em"
597
+					print '<div class="tagtd valignmiddle">'; //  style="height: 4em"
598 598
 					print $obj->getDesc();
599 599
 					print '</div>';
600 600
 
601 601
 					$nbofrecipient = -1;
602 602
 
603 603
 					try {
604
-						$obj->evenunsubscribe = $object->evenunsubscribe;	// Set flag to include/exclude email that has opt-out.
604
+						$obj->evenunsubscribe = $object->evenunsubscribe; // Set flag to include/exclude email that has opt-out.
605 605
 
606 606
 						$nbofrecipient = $obj->getNbOfRecipients('');
607 607
 					} catch (Exception $e) {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
 		$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
655 655
 		print $hookmanager->resPrint;
656 656
 
657
-		print '</div>';	// End table
657
+		print '</div>'; // End table
658 658
 		print '</div>';
659 659
 
660 660
 		print '<br>';
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 			$arrayofmassactions['reset_target'] = img_picto('', 'refresh', 'class="pictofixedwidth"').$langs->trans("ResetMailingTargetMassaction");
762 762
 		}
763 763
 		$massactionbutton = $form->selectMassAction('', $arrayofmassactions);
764
-		$morehtmlcenter .= $massactionbutton .'<br>';
764
+		$morehtmlcenter .= $massactionbutton.'<br>';
765 765
 
766 766
 		if ($object->status == $object::STATUS_DRAFT) {
767 767
 			$morehtmlcenter = '<span class="opacitymedium hideonsmartphone">'.$langs->trans("ToClearAllRecipientsClickHere").'</span> <a href="'.$_SERVER["PHP_SELF"].'?clearlist=1&id='.$object->id.'" class="button reposition smallpaddingimp">'.$langs->trans("TargetsReset").'</a>';
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
 				print '<td class="center nowraponall">';
964 964
 				if ($obj->status != $object::STATUS_DRAFT) {		// If status of target line is not draft
965 965
 					// Date sent
966
-					print $obj->date_envoi;		// @TODO Must store date in date format
966
+					print $obj->date_envoi; // @TODO Must store date in date format
967 967
 				}
968 968
 				print '</td>';
969 969
 
Please login to merge, or discard this patch.
htdocs/admin/dict.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 $id = GETPOSTINT('id');
103 103
 $rowid = GETPOST('rowid', 'alpha');
104
-$entity = GETPOST('entity', 'alpha');	// Do not use GETPOSTINT here. Should be '', 0 or >0.
104
+$entity = GETPOST('entity', 'alpha'); // Do not use GETPOSTINT here. Should be '', 0 or >0.
105 105
 $code = GETPOST('code', 'alpha');
106 106
 $from = GETPOST('from', 'alpha');
107 107
 
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
 $tabcond[DICT_STCOMM] = isModEnabled("societe");
571 571
 $tabcond[DICT_HOLIDAY_TYPES] = isModEnabled('holiday');
572 572
 $tabcond[DICT_LEAD_STATUS] = isModEnabled('project');
573
-$tabcond[DICT_FORMAT_CARDS] = (isModEnabled('label') || isModEnabled('barcode') || isModEnabled('member'));	// stickers format dictionary
573
+$tabcond[DICT_FORMAT_CARDS] = (isModEnabled('label') || isModEnabled('barcode') || isModEnabled('member')); // stickers format dictionary
574 574
 $tabcond[DICT_INVOICE_SUBTYPE] = ((isModEnabled('invoice') || isModEnabled('supplier_invoice')) && $mysoc->country_code == 'GR');
575 575
 $tabcond[DICT_HRM_PUBLIC_HOLIDAY] = (isModEnabled('holiday') || isModEnabled('hrm'));
576 576
 $tabcond[DICT_HRM_DEPARTMENT] = isModEnabled('hrm');
@@ -973,7 +973,7 @@  discard block
 block discarded – undo
973 973
 				if ($value == 'price' || preg_match('/^amount/i', $value)) {
974 974
 					$_POST[$keycode] = price2num(GETPOST($keycode), 'MU');
975 975
 				} elseif ($value == 'taux' || $value == 'localtax1') {
976
-					$_POST[$keycode] = price2num(GETPOST($keycode), 8);	// Note that localtax2 can be a list of rates separated by coma like X:Y:Z
976
+					$_POST[$keycode] = price2num(GETPOST($keycode), 8); // Note that localtax2 can be a list of rates separated by coma like X:Y:Z
977 977
 				} elseif ($value == 'entity') {
978 978
 					$_POST[$keycode] = getEntity($tablename);
979 979
 				}
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
 				if ($field == 'price' || preg_match('/^amount/i', $field)) {
1043 1043
 					$_POST[$keycode] = price2num(GETPOST($keycode), 'MU');
1044 1044
 				} elseif ($field == 'taux' || $field == 'localtax1') {
1045
-					$_POST[$keycode] = price2num(GETPOST($keycode), 8);	// Note that localtax2 can be a list of rates separated by coma like X:Y:Z
1045
+					$_POST[$keycode] = price2num(GETPOST($keycode), 8); // Note that localtax2 can be a list of rates separated by coma like X:Y:Z
1046 1046
 				} elseif ($field == 'entity') {
1047 1047
 					$_POST[$keycode] = getEntity($tablename);
1048 1048
 				}
@@ -2520,7 +2520,7 @@  discard block
 block discarded – undo
2520 2520
 							}
2521 2521
 							// Show value for field
2522 2522
 							if ($showfield) {
2523
-								print '<!-- '. $value .' --><td class="'.$class.'"'.($titletoshow ? ' title="'.dolPrintHTMLForAttribute($titletoshow).'"' : '').'>'.$valuetoshow.'</td>';
2523
+								print '<!-- '.$value.' --><td class="'.$class.'"'.($titletoshow ? ' title="'.dolPrintHTMLForAttribute($titletoshow).'"' : '').'>'.$valuetoshow.'</td>';
2524 2524
 							}
2525 2525
 						}
2526 2526
 
@@ -2704,7 +2704,7 @@  discard block
 block discarded – undo
2704 2704
 			// Special case for c_actioncomm (field that should not be modified)
2705 2705
 			$hidden = (!empty($obj->{$value}) ? $obj->{$value} : '');
2706 2706
 			print '<td>';
2707
-			print '<input type="hidden" name="'. $value .'" value="'.$hidden.'">';
2707
+			print '<input type="hidden" name="'.$value.'" value="'.$hidden.'">';
2708 2708
 			print $langs->trans($hidden);
2709 2709
 			print '</td>';
2710 2710
 		} elseif ($value == 'country') {
@@ -2725,7 +2725,7 @@  discard block
 block discarded – undo
2725 2725
 			if (!in_array('country', $fieldlist)) {	// If there is already a field country, we don't show country_id (avoid duplicate)
2726 2726
 				$country_id = (!empty($obj->{$value}) ? $obj->{$value} : 0);
2727 2727
 				print '<td class="tdoverflowmax100">';
2728
-				print '<input type="hidden" name="'. $value .'" value="'.$country_id.'">';
2728
+				print '<input type="hidden" name="'.$value.'" value="'.$country_id.'">';
2729 2729
 				print '</td>';
2730 2730
 			}
2731 2731
 		} elseif ($value == 'region') {
@@ -2735,7 +2735,7 @@  discard block
 block discarded – undo
2735 2735
 		} elseif ($value == 'region_id') {
2736 2736
 			$region_id = (!empty($obj->{$value}) ? $obj->{$value} : 0);
2737 2737
 			print '<td>';
2738
-			print '<input type="hidden" name="'. $value .'" value="'.$region_id.'">';
2738
+			print '<input type="hidden" name="'.$value.'" value="'.$region_id.'">';
2739 2739
 			print '</td>';
2740 2740
 		} elseif ($value == 'lang') {
2741 2741
 			print '<td>';
@@ -2791,7 +2791,7 @@  discard block
 block discarded – undo
2791 2791
 				$class = "center"; // Fields aligned on right
2792 2792
 			}
2793 2793
 			print '<td class="'.$class.'">';
2794
-			print '<input type="text" class="flat" value="'.(isset($obj->{$value}) ? $obj->{$value} : '').'" size="3" name="'. $value .'">';
2794
+			print '<input type="text" class="flat" value="'.(isset($obj->{$value}) ? $obj->{$value} : '').'" size="3" name="'.$value.'">';
2795 2795
 			print '</td>';
2796 2796
 		} elseif (in_array($value, array('libelle_facture'))) {
2797 2797
 			print '<td>';
@@ -2801,7 +2801,7 @@  discard block
 block discarded – undo
2801 2801
 			if ($tabname == 'c_payment_term') {
2802 2802
 				$langs->load("bills");
2803 2803
 				if (isset($obj->code) && !empty($obj->code)) {
2804
-					$transkey = "PaymentCondition" . strtoupper($obj->code);
2804
+					$transkey = "PaymentCondition".strtoupper($obj->code);
2805 2805
 					if ($langs->trans($transkey) != $transkey) {
2806 2806
 						$transfound = 1;
2807 2807
 						print $form->textwithpicto($langs->trans($transkey), $langs->trans("GoIntoTranslationMenuToChangeThis"));
@@ -2809,21 +2809,21 @@  discard block
 block discarded – undo
2809 2809
 				}
2810 2810
 			}
2811 2811
 			if (!$transfound) {
2812
-				print '<textarea cols="30" rows="'.ROWS_2.'" class="flat" name="'. $value .'">'.(!empty($obj->{$value}) ? $obj->{$value} : '').'</textarea>';
2812
+				print '<textarea cols="30" rows="'.ROWS_2.'" class="flat" name="'.$value.'">'.(!empty($obj->{$value}) ? $obj->{$value} : '').'</textarea>';
2813 2813
 			} else {
2814
-				print '<input type="hidden" name="'. $value .'" value="'.$transkey.'">';
2814
+				print '<input type="hidden" name="'.$value.'" value="'.$transkey.'">';
2815 2815
 			}
2816 2816
 			print '</td>';
2817 2817
 		} elseif ($value == 'price' || preg_match('/^amount/i', (string) $value)) {
2818
-			print '<td><input type="text" class="flat minwidth75" value="'.price((!empty($obj->{$value}) ? $obj->{$value} : '')).'" name="'. $value .'"></td>';
2818
+			print '<td><input type="text" class="flat minwidth75" value="'.price((!empty($obj->{$value}) ? $obj->{$value} : '')).'" name="'.$value.'"></td>';
2819 2819
 		} elseif ($value == 'code' && isset($obj->{$value})) {
2820 2820
 			print '<td>';
2821 2821
 			if ($tabname == 'c_paiement' && in_array($obj->{$value}, array('LIQ', 'CB', 'CHQ', 'VIR'))) {
2822 2822
 				// Case of code that should not be modified
2823
-				print '<input type="hidden" class="flat minwidth75 maxwidth100" value="'.(!empty($obj->{$value}) ? $obj->{$value} : '').'" name="'. $value .'">';
2823
+				print '<input type="hidden" class="flat minwidth75 maxwidth100" value="'.(!empty($obj->{$value}) ? $obj->{$value} : '').'" name="'.$value.'">';
2824 2824
 				print $obj->{$value};
2825 2825
 			} else {
2826
-				print '<input type="text" class="flat minwidth75 maxwidth100" value="'.(!empty($obj->{$value}) ? $obj->{$value} : '').'" name="'. $value .'">';
2826
+				print '<input type="text" class="flat minwidth75 maxwidth100" value="'.(!empty($obj->{$value}) ? $obj->{$value} : '').'" name="'.$value.'">';
2827 2827
 			}
2828 2828
 			print '</td>';
2829 2829
 		} elseif ($value == 'unit') {
@@ -2851,10 +2851,10 @@  discard block
 block discarded – undo
2851 2851
 			if (isModEnabled('accounting')) {
2852 2852
 				$fieldname = $value;
2853 2853
 				$accountancy_account = (!empty($obj->$fieldname) ? $obj->$fieldname : 0);
2854
-				print $formaccounting->select_account($accountancy_account, '.'. $value, 1, array(), 1, 1, 'maxwidth200 maxwidthonsmartphone');
2854
+				print $formaccounting->select_account($accountancy_account, '.'.$value, 1, array(), 1, 1, 'maxwidth200 maxwidthonsmartphone');
2855 2855
 			} else {
2856 2856
 				$fieldname = $value;
2857
-				print '<input type="text" size="10" class="flat" value="'.(isset($obj->$fieldname) ? $obj->$fieldname : '').'" name="'. $value .'">';
2857
+				print '<input type="text" size="10" class="flat" value="'.(isset($obj->$fieldname) ? $obj->$fieldname : '').'" name="'.$value.'">';
2858 2858
 			}
2859 2859
 			print '</td>';
2860 2860
 		} elseif ($value == 'fk_tva') {
@@ -2875,7 +2875,7 @@  discard block
 block discarded – undo
2875 2875
 			print '</td>';
2876 2876
 		} elseif ($value == 'type_duration') {
2877 2877
 			print '<td>';
2878
-			print $form->selectTypeDuration('', (empty($obj->type_duration) ? '' : $obj->type_duration), array('i','h'));
2878
+			print $form->selectTypeDuration('', (empty($obj->type_duration) ? '' : $obj->type_duration), array('i', 'h'));
2879 2879
 			print '</td>';
2880 2880
 		} else {
2881 2881
 			$fieldValue = isset($obj->{$value}) ? $obj->{$value} : '';
Please login to merge, or discard this patch.
htdocs/admin/agenda_extsites.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	} else {
82 82
 		$db->commit();
83 83
 		setEventMessage($langs->trans('SetupSaved'));
84
-		header('Location: ' . $_SERVER["PHP_SELF"]);
84
+		header('Location: '.$_SERVER["PHP_SELF"]);
85 85
 		exit();
86 86
 	}
87 87
 } elseif (preg_match('/del_(.*)/', $action, $reg)) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	} else {
102 102
 		$db->commit();
103 103
 		setEventMessage($langs->trans('SetupSaved'));
104
-		header('Location: ' . $_SERVER["PHP_SELF"]);
104
+		header('Location: '.$_SERVER["PHP_SELF"]);
105 105
 		exit();
106 106
 	}
107 107
 } elseif ($action == 'save') {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 print '<tr class="oddeven">';
245 245
 print "<td>".$langs->trans("ExtSitesNbOfAgenda")."</td>";
246 246
 print '<td class="center">';
247
-print '<input class="flat hideifnotset width50 center" type="text" id="AGENDA_EXT_NB" name="AGENDA_EXT_NB" value="' . getDolGlobalString('AGENDA_EXT_NB').'">';
247
+print '<input class="flat hideifnotset width50 center" type="text" id="AGENDA_EXT_NB" name="AGENDA_EXT_NB" value="'.getDolGlobalString('AGENDA_EXT_NB').'">';
248 248
 print "</td>";
249 249
 print "</tr>";
250 250
 
@@ -266,36 +266,36 @@  discard block
 block discarded – undo
266 266
 $i = 1;
267 267
 while ($i <= $MAXAGENDA) {
268 268
 	$key = $i;
269
-	$name = 'AGENDA_EXT_NAME' . $key;
270
-	$src = 'AGENDA_EXT_SRC' . $key;
271
-	$offsettz = 'AGENDA_EXT_OFFSETTZ' . $key;
272
-	$color = 'AGENDA_EXT_COLOR' . $key;
273
-	$enabled = 'AGENDA_EXT_ENABLED' . $key;
274
-	$default = 'AGENDA_EXT_ACTIVEBYDEFAULT' . $key;
269
+	$name = 'AGENDA_EXT_NAME'.$key;
270
+	$src = 'AGENDA_EXT_SRC'.$key;
271
+	$offsettz = 'AGENDA_EXT_OFFSETTZ'.$key;
272
+	$color = 'AGENDA_EXT_COLOR'.$key;
273
+	$enabled = 'AGENDA_EXT_ENABLED'.$key;
274
+	$default = 'AGENDA_EXT_ACTIVEBYDEFAULT'.$key;
275 275
 
276 276
 	print '<tr class="oddeven">';
277 277
 	// Nb  @phan-suppress-next-line PhanPluginSuspiciousParamPosition
278
-	print '<td width="180" class="nowrap">' . $langs->trans("AgendaExtNb", $key) . "</td>";
278
+	print '<td width="180" class="nowrap">'.$langs->trans("AgendaExtNb", $key)."</td>";
279 279
 	// Name
280
-	print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_NAME' . $key . '" value="' . (GETPOST('AGENDA_EXT_NAME' . $key) ? GETPOST('AGENDA_EXT_NAME' . $key, 'alpha') : getDolGlobalString($name)) . '" size="28"></td>';
280
+	print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_NAME'.$key.'" value="'.(GETPOST('AGENDA_EXT_NAME'.$key) ? GETPOST('AGENDA_EXT_NAME'.$key, 'alpha') : getDolGlobalString($name)).'" size="28"></td>';
281 281
 	// URL
282
-	print '<td><input type="url" class="flat hideifnotset" name="AGENDA_EXT_SRC' . $key . '" value="' . (GETPOST('AGENDA_EXT_SRC' . $key) ? GETPOST('AGENDA_EXT_SRC' . $key, 'alpha') : getDolGlobalString($src)) . '" size="60"></td>';
282
+	print '<td><input type="url" class="flat hideifnotset" name="AGENDA_EXT_SRC'.$key.'" value="'.(GETPOST('AGENDA_EXT_SRC'.$key) ? GETPOST('AGENDA_EXT_SRC'.$key, 'alpha') : getDolGlobalString($src)).'" size="60"></td>';
283 283
 	// Offset TZ
284
-	print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_OFFSETTZ' . $key . '" value="' . (GETPOST('AGENDA_EXT_OFFSETTZ' . $key) ? GETPOST('AGENDA_EXT_OFFSETTZ' . $key) : getDolGlobalString($offsettz)) . '" size="2"></td>';
284
+	print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_OFFSETTZ'.$key.'" value="'.(GETPOST('AGENDA_EXT_OFFSETTZ'.$key) ? GETPOST('AGENDA_EXT_OFFSETTZ'.$key) : getDolGlobalString($offsettz)).'" size="2"></td>';
285 285
 	// Color (Possible colors are limited by Google)
286 286
 	print '<td class="nowraponall right">';
287
-	print $formother->selectColor((GETPOST("AGENDA_EXT_COLOR" . $key) ? GETPOST("AGENDA_EXT_COLOR" . $key) : getDolGlobalString($color)), "AGENDA_EXT_COLOR" . $key, 'extsitesconfig', 1, array(), 'hideifnotset');
287
+	print $formother->selectColor((GETPOST("AGENDA_EXT_COLOR".$key) ? GETPOST("AGENDA_EXT_COLOR".$key) : getDolGlobalString($color)), "AGENDA_EXT_COLOR".$key, 'extsitesconfig', 1, array(), 'hideifnotset');
288 288
 	print '</td>';
289 289
 	// Calendar active by default
290 290
 	print '<td class="nowrap right">';
291 291
 	if (!empty($conf->use_javascript_ajax)) {
292
-		print ajax_constantonoff('AGENDA_EXT_ACTIVEBYDEFAULT' . $key);
292
+		print ajax_constantonoff('AGENDA_EXT_ACTIVEBYDEFAULT'.$key);
293 293
 	} else {
294 294
 		// @phan-suppress-next-line PhanPluginSuspiciousParamPosition
295 295
 		if (getDolGlobalString($default)) {
296
-			print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del_AGENDA_EXT_ACTIVEBYDEFAULT' . $key . '&token='.newToken().'">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
296
+			print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_AGENDA_EXT_ACTIVEBYDEFAULT'.$key.'&token='.newToken().'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
297 297
 		} else {
298
-			print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_AGENDA_EXT_ACTIVEBYDEFAULT' . $key . '&token='.newToken().'">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
298
+			print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_AGENDA_EXT_ACTIVEBYDEFAULT'.$key.'&token='.newToken().'">'.img_picto($langs->trans("Enabled"), 'on').'</a>';
299 299
 		}
300 300
 	}
301 301
 	print '</td>';
Please login to merge, or discard this patch.
htdocs/admin/supplier_invoice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 $type = GETPOST('type', 'alpha');
46 46
 $value = GETPOST('value', 'alpha');
47
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
47
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
48 48
 
49 49
 $label = GETPOST('label', 'alpha');
50 50
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 					$module = new $classname($db, $specimenthirdparty);
383 383
 					'@phan-var-force ModelePDFSuppliersInvoices $module';
384 384
 					if (method_exists($module, 'info')) {
385
-						print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
385
+						print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
386 386
 					} else {
387 387
 						print $module->description;
388 388
 					}
Please login to merge, or discard this patch.
htdocs/admin/invoice.php 1 patch
Spacing   +8 added lines, -8 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');
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 		setEventMessages($langs->trans('Error'), null, 'errors');
252 252
 	} else {
253 253
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
254
-		header("Location: " . $_SERVER["PHP_SELF"]);
254
+		header("Location: ".$_SERVER["PHP_SELF"]);
255 255
 		exit();
256 256
 	}
257 257
 } elseif (preg_match('/del_(.*)/', $action, $reg)) {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 		setEventMessages($langs->trans('Error'), null, 'errors');
267 267
 	} else {
268 268
 		setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
269
-		header("Location: " . $_SERVER["PHP_SELF"]);
269
+		header("Location: ".$_SERVER["PHP_SELF"]);
270 270
 		exit();
271 271
 	}
272 272
 }
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 
369 369
 							print '<td class="center">';
370 370
 							//print "> ".$conf->global->FACTURE_ADDON." - ".$file;
371
-							if ($conf->global->FACTURE_ADDON == $file || getDolGlobalString('FACTURE_ADDON') . '.php' == $file) {
371
+							if ($conf->global->FACTURE_ADDON == $file || getDolGlobalString('FACTURE_ADDON').'.php' == $file) {
372 372
 								print img_picto($langs->trans("Activated"), 'switch_on');
373 373
 							} else {
374 374
 								print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&value='.preg_replace('/\.php$/', '', $file).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 							print '<td class="center">';
444 444
 							print $form->textwithpicto('', $htmltooltip, 1, 0);
445 445
 
446
-							if (getDolGlobalString('FACTURE_ADDON') . '.php' == $file) {  // If module is the one used, we show existing errors
446
+							if (getDolGlobalString('FACTURE_ADDON').'.php' == $file) {  // If module is the one used, we show existing errors
447 447
 								if (!empty($module->error)) {
448 448
 									dol_htmloutput_mesg($module->error, array(), 'error', 1);
449 449
 								}
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
 								print(empty($module->name) ? $name : $module->name);
552 552
 								print "</td><td>\n";
553 553
 								if (method_exists($module, 'info')) {
554
-									print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
554
+									print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
555 555
 								} else {
556 556
 									print $module->description;
557 557
 								}
@@ -831,8 +831,8 @@  discard block
 block discarded – undo
831 831
 print '</form>';
832 832
 
833 833
 
834
-print '<tr class="oddeven"><td>'.$langs->trans("InvoiceCheckPosteriorDate"). '&nbsp;' ;
835
-print $form->textwithpicto('', $langs->trans("InvoiceCheckPosteriorDateHelp"), 1, 'help') . '</td>';
834
+print '<tr class="oddeven"><td>'.$langs->trans("InvoiceCheckPosteriorDate").'&nbsp;';
835
+print $form->textwithpicto('', $langs->trans("InvoiceCheckPosteriorDateHelp"), 1, 'help').'</td>';
836 836
 print '<td class="left" colspan="2">';
837 837
 print ajax_constantonoff('INVOICE_CHECK_POSTERIOR_DATE');
838 838
 print '</td></tr>';
Please login to merge, or discard this patch.
htdocs/admin/dolistore/class/PSWebServiceLibrary.class.php 1 patch
Spacing   +27 added lines, -28 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 				break;
125 125
 			default:
126 126
 				throw new PrestaShopWebserviceException(
127
-					'This call to PrestaShop Web Services returned an unexpected HTTP status of:' . $request['status_code']
127
+					'This call to PrestaShop Web Services returned an unexpected HTTP status of:'.$request['status_code']
128 128
 				);
129 129
 		}
130 130
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 			$errors = $response->children()->children();
134 134
 			if ($errors && count($errors) > 0) {
135 135
 				foreach ($errors as $error) {
136
-					$error_message .= ' - (Code ' . $error->code . '): ' . $error->message;
136
+					$error_message .= ' - (Code '.$error->code.'): '.$error->message;
137 137
 				}
138 138
 			}
139 139
 			$error_label = 'This call to PrestaShop Web Services failed and returned an HTTP status of %d. That means: %s.';
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 			CURLOPT_RETURNTRANSFER => true,
153 153
 			CURLINFO_HEADER_OUT => true,
154 154
 			CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
155
-			CURLOPT_USERPWD => $this->key . ':',
155
+			CURLOPT_USERPWD => $this->key.':',
156 156
 			CURLOPT_HTTPHEADER => array('Expect:'),
157 157
 			//CURLOPT_SSL_VERIFYPEER => false, // reminder, in dev environment sometimes self-signed certificates are used
158 158
 			//CURLOPT_CAINFO => "PATH2CAINFO", // ssl certificate chain checking
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
 		$index = strpos($response, "\r\n\r\n");
200 200
 		if ($index === false && $curl_params[CURLOPT_CUSTOMREQUEST] != 'HEAD') {
201
-			throw new PrestaShopWebserviceException('Bad HTTP response ' . $response . curl_error($session));
201
+			throw new PrestaShopWebserviceException('Bad HTTP response '.$response.curl_error($session));
202 202
 		}
203 203
 
204 204
 		$header = substr($response, 0, $index);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		}
234 234
 		$status_code = curl_getinfo($session, CURLINFO_HTTP_CODE);
235 235
 		if ($status_code === 0) {
236
-			throw new PrestaShopWebserviceException('CURL Error: ' . curl_error($session));
236
+			throw new PrestaShopWebserviceException('CURL Error: '.curl_error($session));
237 237
 		}
238 238
 		curl_close($session);
239 239
 		if ($this->debug) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	public function printDebug($title, $content)
258 258
 	{
259 259
 		if (php_sapi_name() == 'cli') {
260
-			echo $title . PHP_EOL . $content;
260
+			echo $title.PHP_EOL.$content;
261 261
 		} else {
262 262
 			echo '<div style="display:table;background:#CCC;font-size:8pt;padding:7px"><h6 style="font-size:9pt;margin:0">'
263 263
 				. $title
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 			if (libxml_get_errors()) {
302 302
 				$msg = var_export(libxml_get_errors(), true);
303 303
 				libxml_clear_errors();
304
-				throw new PrestaShopWebserviceException('HTTP XML response is not parsable: ' . $msg);
304
+				throw new PrestaShopWebserviceException('HTTP XML response is not parsable: '.$msg);
305 305
 			}
306 306
 			return $xml;
307 307
 		} else {
@@ -326,13 +326,13 @@  discard block
 block discarded – undo
326 326
 		$xml = '';
327 327
 
328 328
 		if (isset($options['resource'], $options['postXml']) || isset($options['url'], $options['postXml'])) {
329
-			$url = (isset($options['resource']) ? $this->url . '/api/' . $options['resource'] : $options['url']);
329
+			$url = (isset($options['resource']) ? $this->url.'/api/'.$options['resource'] : $options['url']);
330 330
 			$xml = $options['postXml'];
331 331
 			if (isset($options['id_shop'])) {
332
-				$url .= '&id_shop=' . $options['id_shop'];
332
+				$url .= '&id_shop='.$options['id_shop'];
333 333
 			}
334 334
 			if (isset($options['id_group_shop'])) {
335
-				$url .= '&id_group_shop=' . $options['id_group_shop'];
335
+				$url .= '&id_group_shop='.$options['id_group_shop'];
336 336
 			}
337 337
 		} else {
338 338
 			throw new PrestaShopWebserviceException('Bad parameters given');
@@ -379,10 +379,10 @@  discard block
 block discarded – undo
379 379
 		if (isset($options['url'])) {
380 380
 			$url = $options['url'];
381 381
 		} elseif (isset($options['resource'])) {
382
-			$url = $this->url . '/api/' . $options['resource'];
382
+			$url = $this->url.'/api/'.$options['resource'];
383 383
 			$url_params = array();
384 384
 			if (isset($options['id'])) {
385
-				$url .= '/' . $options['id'];
385
+				$url .= '/'.$options['id'];
386 386
 			}
387 387
 
388 388
 			$params = array('filter', 'display', 'sort', 'limit', 'id_shop', 'id_group_shop', 'schema', 'language', 'date', 'price');
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 				}
395 395
 			}
396 396
 			if (count($url_params) > 0) {
397
-				$url .= '?' . http_build_query($url_params);
397
+				$url .= '?'.http_build_query($url_params);
398 398
 			}
399 399
 		} else {
400 400
 			throw new PrestaShopWebserviceException('Bad parameters given');
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 
403 403
 		$request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'GET'));
404 404
 
405
-		$this->checkStatusCode($request);// check the response validity
405
+		$this->checkStatusCode($request); // check the response validity
406 406
 
407 407
 		return $this->parseXML($request['response']);
408 408
 	}
@@ -420,10 +420,10 @@  discard block
 block discarded – undo
420 420
 		if (isset($options['url'])) {
421 421
 			$url = $options['url'];
422 422
 		} elseif (isset($options['resource'])) {
423
-			$url = $this->url . '/api/' . $options['resource'];
423
+			$url = $this->url.'/api/'.$options['resource'];
424 424
 			$url_params = array();
425 425
 			if (isset($options['id'])) {
426
-				$url .= '/' . $options['id'];
426
+				$url .= '/'.$options['id'];
427 427
 			}
428 428
 
429 429
 			$params = array('filter', 'display', 'sort', 'limit');
@@ -435,13 +435,13 @@  discard block
 block discarded – undo
435 435
 				}
436 436
 			}
437 437
 			if (count($url_params) > 0) {
438
-				$url .= '?' . http_build_query($url_params);
438
+				$url .= '?'.http_build_query($url_params);
439 439
 			}
440 440
 		} else {
441 441
 			throw new PrestaShopWebserviceException('Bad parameters given');
442 442
 		}
443 443
 		$request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'HEAD', CURLOPT_NOBODY => true));
444
-		$this->checkStatusCode($request);// check the response validity
444
+		$this->checkStatusCode($request); // check the response validity
445 445
 		return $request['header'];
446 446
 	}
447 447
 
@@ -464,21 +464,20 @@  discard block
 block discarded – undo
464 464
 		if (isset($options['url'])) {
465 465
 			$url = $options['url'];
466 466
 		} elseif ((isset($options['resource'], $options['id']) || isset($options['url'])) && $options['putXml']) {
467
-			$url = (isset($options['url']) ? $options['url'] :
468
-				$this->url . '/api/' . $options['resource'] . '/' . $options['id']);
467
+			$url = (isset($options['url']) ? $options['url'] : $this->url.'/api/'.$options['resource'].'/'.$options['id']);
469 468
 			$xml = $options['putXml'];
470 469
 			if (isset($options['id_shop'])) {
471
-				$url .= '&id_shop=' . $options['id_shop'];
470
+				$url .= '&id_shop='.$options['id_shop'];
472 471
 			}
473 472
 			if (isset($options['id_group_shop'])) {
474
-				$url .= '&id_group_shop=' . $options['id_group_shop'];
473
+				$url .= '&id_group_shop='.$options['id_group_shop'];
475 474
 			}
476 475
 		} else {
477 476
 			throw new PrestaShopWebserviceException('Bad parameters given');
478 477
 		}
479 478
 
480 479
 		$request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'PUT', CURLOPT_POSTFIELDS => $xml));
481
-		$this->checkStatusCode($request);// check the response validity
480
+		$this->checkStatusCode($request); // check the response validity
482 481
 		return $this->parseXML($request['response']);
483 482
 	}
484 483
 
@@ -515,21 +514,21 @@  discard block
 block discarded – undo
515 514
 			$url = $options['url'];
516 515
 		} elseif (isset($options['resource']) && isset($options['id'])) {
517 516
 			$url = (is_array($options['id']))
518
-				? $this->url . '/api/' . $options['resource'] . '/?id=[' . implode(',', $options['id']) . ']'
519
-				: $this->url . '/api/' . $options['resource'] . '/' . $options['id'];
517
+				? $this->url.'/api/'.$options['resource'].'/?id=['.implode(',', $options['id']).']'
518
+				: $this->url.'/api/'.$options['resource'].'/'.$options['id'];
520 519
 		} else {
521 520
 			throw new PrestaShopWebserviceException('Bad parameters given');
522 521
 		}
523 522
 
524 523
 		if (isset($options['id_shop'])) {
525
-			$url .= '&id_shop=' . $options['id_shop'];
524
+			$url .= '&id_shop='.$options['id_shop'];
526 525
 		}
527 526
 		if (isset($options['id_group_shop'])) {
528
-			$url .= '&id_group_shop=' . $options['id_group_shop'];
527
+			$url .= '&id_group_shop='.$options['id_group_shop'];
529 528
 		}
530 529
 
531 530
 		$request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'DELETE'));
532
-		$this->checkStatusCode($request);// check the response validity
531
+		$this->checkStatusCode($request); // check the response validity
533 532
 		return true;
534 533
 	}
535 534
 }
Please login to merge, or discard this patch.
htdocs/admin/agenda_other.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 $action = GETPOST('action', 'aZ09');
46 46
 $value = GETPOST('value', 'alpha');
47
-$modulepart = GETPOST('modulepart', 'aZ09');	// Used by actions_setmoduleoptions.inc.php
47
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
48 48
 
49 49
 $param = GETPOST('param', 'alpha');
50 50
 $cancel = GETPOST('cancel', 'alpha');
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 						$module = new $classname($db, $specimenthirdparty);
273 273
 						'@phan-var-force ModeleAction $module';
274 274
 						if (method_exists($module, 'info')) {
275
-							print $module->info($langs);  // @phan-suppress-current-line PhanUndeclaredMethod
275
+							print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
276 276
 						} else {
277 277
 							print $module->description;
278 278
 						}
Please login to merge, or discard this patch.