@@ -1100,7 +1100,7 @@ discard block |
||
1100 | 1100 | return $this->LibStatut($this->status, $mode); |
1101 | 1101 | } |
1102 | 1102 | |
1103 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1103 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1104 | 1104 | /** |
1105 | 1105 | * Return the status |
1106 | 1106 | * |
@@ -1110,7 +1110,7 @@ discard block |
||
1110 | 1110 | */ |
1111 | 1111 | public function LibStatut($status, $mode = 0) |
1112 | 1112 | { |
1113 | - // phpcs:enable |
|
1113 | + // phpcs:enable |
|
1114 | 1114 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
1115 | 1115 | global $langs; |
1116 | 1116 | //$langs->load("partnership"); |
@@ -70,9 +70,9 @@ |
||
70 | 70 | |
71 | 71 | |
72 | 72 | const STATUS_DRAFT = 0; |
73 | - const STATUS_VALIDATED = 1; // Validate (no more draft) |
|
74 | - const STATUS_APPROVED = 2; // Approved |
|
75 | - const STATUS_REFUSED = 3; // Refused |
|
73 | + const STATUS_VALIDATED = 1; // Validate (no more draft) |
|
74 | + const STATUS_APPROVED = 2; // Approved |
|
75 | + const STATUS_REFUSED = 3; // Refused |
|
76 | 76 | const STATUS_CANCELED = 9; |
77 | 77 | |
78 | 78 |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $object->actionmsg2 = $langs->transnoentities("PartnershipSentByEMail", $object->ref); |
216 | 216 | ; // Short text ($langs->transnoentities('MailSentByTo')...); |
217 | 217 | if (getDolGlobalString('MAIN_MAIL_REPLACE_EVENT_TITLE_BY_EMAIL_SUBJECT')) { |
218 | - $object->actionmsg2 = $subject; // Short text |
|
218 | + $object->actionmsg2 = $subject; // Short text |
|
219 | 219 | } |
220 | 220 | |
221 | 221 | $object->trackid = $trackid; |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | $object->actionmsg2 = $langs->transnoentities("PartnershipSentByEMail", $object->ref); |
439 | 439 | ; // Short text ($langs->transnoentities('MailSentByTo')...); |
440 | 440 | if (getDolGlobalString('MAIN_MAIL_REPLACE_EVENT_TITLE_BY_EMAIL_SUBJECT')) { |
441 | - $object->actionmsg2 = $subject; // Short text |
|
441 | + $object->actionmsg2 = $subject; // Short text |
|
442 | 442 | } |
443 | 443 | |
444 | 444 | $object->trackid = $trackid; |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | |
344 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
344 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
345 | 345 | /** |
346 | 346 | * Clean sensible object datas |
347 | 347 | * |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | */ |
351 | 351 | protected function _cleanObjectDatas($object) |
352 | 352 | { |
353 | - // phpcs:enable |
|
353 | + // phpcs:enable |
|
354 | 354 | $object = parent::_cleanObjectDatas($object); |
355 | 355 | |
356 | 356 | unset($object->rowid); |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | return $result; |
580 | 580 | } |
581 | 581 | |
582 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
582 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
583 | 583 | /** |
584 | 584 | * Return array of lines |
585 | 585 | * |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | */ |
588 | 588 | public function fetch_lines() |
589 | 589 | { |
590 | - // phpcs:enable |
|
590 | + // phpcs:enable |
|
591 | 591 | $this->lines = array(); |
592 | 592 | |
593 | 593 | $sql = "SELECT id_users, nom as name, reponses"; |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | return $this->LibStatut($this->status, $mode); |
737 | 737 | } |
738 | 738 | |
739 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
739 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
740 | 740 | /** |
741 | 741 | * Return label of status |
742 | 742 | * |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | */ |
747 | 747 | public function LibStatut($status, $mode) |
748 | 748 | { |
749 | - // phpcs:enable |
|
749 | + // phpcs:enable |
|
750 | 750 | global $langs, $conf; |
751 | 751 | |
752 | 752 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | } |
666 | 666 | } |
667 | 667 | |
668 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
668 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
669 | 669 | /** |
670 | 670 | * Update DB line fields total_xxx |
671 | 671 | * Used by migration |
@@ -674,7 +674,7 @@ discard block |
||
674 | 674 | */ |
675 | 675 | public function update_total() |
676 | 676 | { |
677 | - // phpcs:enable |
|
677 | + // phpcs:enable |
|
678 | 678 | $this->db->begin(); |
679 | 679 | |
680 | 680 | // Mise a jour ligne en base |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | return $this->LibStatut($this->fk_statut, $this->billed, $mode); |
321 | 321 | } |
322 | 322 | |
323 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
323 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
324 | 324 | /** |
325 | 325 | * Return label of status |
326 | 326 | * |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | */ |
333 | 333 | public function LibStatut($status, $billed, $mode, $donotshowbilled = 0) |
334 | 334 | { |
335 | - // phpcs:enable |
|
335 | + // phpcs:enable |
|
336 | 336 | return $this->getOrderStatic()->LibStatut($status, $billed, $mode, $donotshowbilled); |
337 | 337 | } |
338 | 338 | } |
@@ -376,9 +376,9 @@ discard block |
||
376 | 376 | $vartmp = (empty($InfoFieldList[3]) ? '' : $InfoFieldList[3]); |
377 | 377 | $reg = array(); |
378 | 378 | if (preg_match('/^.*:(\w*)$/', $vartmp, $reg)) { |
379 | - $InfoFieldList[4] = $reg[1]; // take the sort field |
|
379 | + $InfoFieldList[4] = $reg[1]; // take the sort field |
|
380 | 380 | } |
381 | - $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field |
|
381 | + $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field |
|
382 | 382 | |
383 | 383 | $classname = $InfoFieldList[0]; |
384 | 384 | $classpath = $InfoFieldList[1]; |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | if (!empty($objecttmp->fields)) { // For object that declare it, it is better to use declared fields (like societe, contact, ...) |
450 | 450 | $tmpfieldstoshow = ''; |
451 | 451 | foreach ($objecttmp->fields as $key => $val) { |
452 | - if (! (int) dol_eval($val['enabled'], 1, 1, '1')) { |
|
452 | + if (!(int) dol_eval($val['enabled'], 1, 1, '1')) { |
|
453 | 453 | continue; |
454 | 454 | } |
455 | 455 | if (!empty($val['showoncombobox'])) { |
@@ -1056,7 +1056,7 @@ discard block |
||
1056 | 1056 | // |
1057 | 1057 | } elseif ($type == 'date') { |
1058 | 1058 | if (!empty($value)) { |
1059 | - $value = dol_print_date($value, 'day'); // We suppose dates without time are always gmt (storage of course + output) |
|
1059 | + $value = dol_print_date($value, 'day'); // We suppose dates without time are always gmt (storage of course + output) |
|
1060 | 1060 | } else { |
1061 | 1061 | $value = ''; |
1062 | 1062 | } |
@@ -171,8 +171,8 @@ |
||
171 | 171 | $confirm = GETPOST('confirm', 'alpha'); |
172 | 172 | $cancel = GETPOST('cancel', 'aZ09'); |
173 | 173 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'webportal' . $elementEn . 'card'; // To manage different context of search |
174 | - $backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
175 | - $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
|
174 | + $backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
175 | + $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
|
176 | 176 | $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha'); |
177 | 177 | |
178 | 178 | // Initialize technical objects |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | return $this->LibStatut($this->paye, $this->fk_statut, $mode, $alreadypaid, $this->type); |
324 | 324 | } |
325 | 325 | |
326 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
326 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
327 | 327 | |
328 | 328 | /** |
329 | 329 | * Return label of a status |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function LibStatut($paye, $status, $mode = 0, $alreadypaid = -1, $type = -1) |
339 | 339 | { |
340 | - // phpcs:enable |
|
340 | + // phpcs:enable |
|
341 | 341 | return $this->getInvoiceStatic()->LibStatut($paye, $status, $mode, $alreadypaid, $type); |
342 | 342 | } |
343 | 343 | } |