@@ -1121,7 +1121,7 @@ |
||
1121 | 1121 | $result = 'found'; // If error, we force like if we found to avoid any deletion |
1122 | 1122 | } |
1123 | 1123 | } else { |
1124 | - $result = 'found'; // |
|
1124 | + $result = 'found'; // |
|
1125 | 1125 | } |
1126 | 1126 | |
1127 | 1127 | if (!$result) { |
@@ -373,7 +373,7 @@ |
||
373 | 373 | $caction = new CActionComm($this->db); |
374 | 374 | |
375 | 375 | // Suggest a list with manual events or all auto events |
376 | - $arraylist = $caction->liste_array(1, 'code', $excludetype, $onlyautoornot, '', 0); // If we use param 'all' instead of 'code', there is no group by include in answer but the key 'type' of answer array contains the key for the group by. |
|
376 | + $arraylist = $caction->liste_array(1, 'code', $excludetype, $onlyautoornot, '', 0); // If we use param 'all' instead of 'code', there is no group by include in answer but the key 'type' of answer array contains the key for the group by. |
|
377 | 377 | if (empty($multiselect)) { |
378 | 378 | // Add empty line at start only if no multiselect |
379 | 379 | array_unshift($arraylist, ' '); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | //Calcul total qty and amount for global if full scan list |
130 | 130 | $total_qty_toconsume = 0; |
131 | 131 | $total_qty_toproduce = 0; |
132 | - $product_cache=array(); |
|
132 | + $product_cache = array(); |
|
133 | 133 | $bom_data_result = array(); |
134 | 134 | |
135 | 135 | //Qauntity to produce |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } |
180 | 180 | $bomtmp->fk_product = $objp->fk_product; |
181 | 181 | $bom_data_result[$objp->rowid]['link'] = $bomtmp->getNomUrl(1, 'production'); |
182 | - $bom_data_result[$objp->rowid]['product'] = (array_key_exists($objp->fk_product, $product_cache)? $product_cache[$objp->fk_product]->getNomUrl(1): ''); |
|
182 | + $bom_data_result[$objp->rowid]['product'] = (array_key_exists($objp->fk_product, $product_cache) ? $product_cache[$objp->fk_product]->getNomUrl(1) : ''); |
|
183 | 183 | $bom_data_result[$objp->rowid]['qty_toproduce'] += ($objp->qty_toproduce > 0 ? $objp->qty_toproduce : 0); |
184 | 184 | $bom_data_result[$objp->rowid]['qty_toconsume'] = 0; |
185 | 185 | $bom_data_result[$objp->rowid]['date_valid'] = dol_print_date($db->jdate($objp->date_valid), 'dayhour'); |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | if (!array_key_exists($objp->rowid, $bom_data_result)) { |
244 | 244 | $bom_data_result[$objp->rowid]['link'] = $bomtmp->getNomUrl(1, 'production'); |
245 | - $bom_data_result[$objp->rowid]['product'] = (array_key_exists($objp->fk_product, $product_cache)? $product_cache[$objp->fk_product]->getNomUrl(1): ''); |
|
245 | + $bom_data_result[$objp->rowid]['product'] = (array_key_exists($objp->fk_product, $product_cache) ? $product_cache[$objp->fk_product]->getNomUrl(1) : ''); |
|
246 | 246 | $bom_data_result[$objp->rowid]['qty_toproduce'] = 0; |
247 | 247 | $bom_data_result[$objp->rowid]['qty_toconsume'] += ($objp->qty_toconsume > 0 ? $objp->qty_toconsume : 0); |
248 | 248 | $bom_data_result[$objp->rowid]['date_valid'] = dol_print_date($db->jdate($objp->date_valid), 'dayhour'); |
@@ -190,7 +190,7 @@ |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | // Add more param |
193 | - $url .= '&nonce='.bin2hex(random_bytes(64/8)); |
|
193 | + $url .= '&nonce='.bin2hex(random_bytes(64 / 8)); |
|
194 | 194 | // TODO Add param hd and/or login_hint |
195 | 195 | if (!preg_match('/^forlogin/', $state)) { |
196 | 196 | //$url .= 'hd=xxx'; |
@@ -516,9 +516,9 @@ |
||
516 | 516 | } |
517 | 517 | |
518 | 518 | foreach ($lines as $line) { |
519 | - $lineObj =(object) $line; |
|
519 | + $lineObj = (object) $line; |
|
520 | 520 | |
521 | - $result=$this->order->dispatchProduct(DolibarrApiAccess::$user, |
|
521 | + $result = $this->order->dispatchProduct(DolibarrApiAccess::$user, |
|
522 | 522 | $lineObj->fk_product, |
523 | 523 | $lineObj->qty, |
524 | 524 | $lineObj->warehouse, |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } else { |
81 | 81 | dol_print_error($db); |
82 | 82 | } |
83 | - dol_setcache($cachekey, $nbProject, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
83 | + dol_setcache($cachekey, $nbProject, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
84 | 84 | } |
85 | 85 | $head[$tab][0] = DOL_URL_ROOT.'/contact/project.php?id='.$object->id; |
86 | 86 | $head[$tab][1] = $langs->trans("Projects"); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | // Turning on or off the ssl target certificate |
80 | 80 | if ($ssl_verifypeer < 0) { |
81 | 81 | global $dolibarr_main_prod; |
82 | - $ssl_verifypeer = ($dolibarr_main_prod ? true : false); |
|
82 | + $ssl_verifypeer = ($dolibarr_main_prod ? true : false); |
|
83 | 83 | } |
84 | 84 | if (!empty($conf->global->MAIN_CURL_DISABLE_VERIFYPEER)) { |
85 | 85 | $ssl_verifypeer = 0; |
@@ -230,13 +230,13 @@ discard block |
||
230 | 230 | if ($iptocheck == $ipofmetadataserver) { |
231 | 231 | $info['http_code'] = 400; |
232 | 232 | $info['content'] = 'Error bad hostname IP (Used by '.$nameofmetadataserver.' metadata server). This IP is forbidden.'; |
233 | - break 2; // exit the foreach and the do... |
|
233 | + break 2; // exit the foreach and the do... |
|
234 | 234 | } |
235 | 235 | } |
236 | 236 | |
237 | 237 | // Set CURLOPT_CONNECT_TO so curl will not try another resolution that may give a different result. Possible only on PHP v7+ |
238 | 238 | if (defined('CURLOPT_CONNECT_TO')) { |
239 | - $connect_to = array(sprintf("%s:%d:%s:%d", $newUrlArray['host'], empty($newUrlArray['port'])?'':$newUrlArray['port'], $iptocheck, empty($newUrlArray['port'])?'':$newUrlArray['port'])); |
|
239 | + $connect_to = array(sprintf("%s:%d:%s:%d", $newUrlArray['host'], empty($newUrlArray['port']) ? '' : $newUrlArray['port'], $iptocheck, empty($newUrlArray['port']) ? '' : $newUrlArray['port'])); |
|
240 | 240 | //var_dump($newUrlArray); |
241 | 241 | //var_dump($connect_to); |
242 | 242 | curl_setopt($ch, CURLOPT_CONNECT_TO, $connect_to); |
@@ -235,7 +235,7 @@ |
||
235 | 235 | $this->dateh = $this->db->jdate($obj->dateh); |
236 | 236 | $this->datef = $this->db->jdate($obj->datef); |
237 | 237 | $this->amount = $obj->subscription; |
238 | - $this->note = $obj->note_public; // deprecated |
|
238 | + $this->note = $obj->note_public; // deprecated |
|
239 | 239 | $this->note_public = $obj->note_public; |
240 | 240 | $this->fk_bank = $obj->fk_bank; |
241 | 241 | return 1; |
@@ -46,7 +46,7 @@ |
||
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'); |