Clean code

This commit is contained in:
Laurent Destailleur 2026-01-29 23:30:39 +01:00
parent 736c269790
commit 8befaf1ae6
2 changed files with 3 additions and 3 deletions

View file

@ -434,7 +434,7 @@ class Mos extends DolibarrApi
if (!empty($arraytoconsume) && !empty($arraytoproduce)) {
$pos = 0;
$arrayofarrayname = array("arraytoconsume","arraytoproduce");
$arrayofarrayname = array("arraytoconsume", "arraytoproduce");
foreach ($arrayofarrayname as $arrayname) {
foreach (${$arrayname} as $value) {
$tmpproduct = new Product($this->db);
@ -806,7 +806,7 @@ class Mos extends DolibarrApi
$this->db->begin();
$pos = 0;
$arrayofarrayname = array("arraytoconsume","arraytoproduce");
$arrayofarrayname = array("arraytoconsume", "arraytoproduce");
foreach ($arrayofarrayname as $arrayname) {
foreach (${$arrayname} as $value) {
if (empty($value["objectid"])) {

View file

@ -559,7 +559,7 @@ if ($action == 'afteradd') {
url: "'.DOL_URL_ROOT.'/public/bookcal/bookcalAjax.php",
data: {
action: "verifyavailability",
id: '.$id.',
id: '.((int) $id).',
datetocheck: $(this).children("div").data("datetime"),
token: "'.currentToken().'",
}