@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | $object->fields = dol_sort_array($object->fields, 'position'); |
161 | 161 | $arrayfields = dol_sort_array($arrayfields, 'position'); |
162 | -'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
162 | +'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
163 | 163 | |
164 | 164 | include DOL_DOCUMENT_ROOT . '/core/actions_changeselectedfields.inc.php'; |
165 | 165 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | // Output page |
361 | 361 | |
362 | -llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-resource page-list bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
362 | +llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-resource page-list bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
363 | 363 | |
364 | 364 | $arrayofselected = is_array($toselect) ? $toselect : array(); |
365 | 365 |
@@ -145,12 +145,12 @@ |
||
145 | 145 | $messagewarning .= '</div>'; |
146 | 146 | |
147 | 147 | if ($result <= 0 && $edituser->error == 'USERNOTFOUND') { |
148 | - usleep(20000); // add delay to simulate setPassword() and send_password() actions delay (0.02s) |
|
148 | + usleep(20000); // add delay to simulate setPassword() and send_password() actions delay (0.02s) |
|
149 | 149 | $message .= $messagewarning; |
150 | 150 | $username = ''; |
151 | 151 | } else { |
152 | 152 | if (empty($edituser->email)) { |
153 | - usleep(20000); // add delay to simulate setPassword() and send_password() actions delay (0.02s) |
|
153 | + usleep(20000); // add delay to simulate setPassword() and send_password() actions delay (0.02s) |
|
154 | 154 | $message .= $messagewarning; |
155 | 155 | } else { |
156 | 156 | $newpassword = $edituser->setPassword($user, '', 1); |
@@ -450,7 +450,7 @@ |
||
450 | 450 | print '<td class="liste_titre right" width="5"> </td>'; |
451 | 451 | print "</tr>\n"; |
452 | 452 | |
453 | - $object->fetch($object->id, '', true); // true to force load of all users, member of the group |
|
453 | + $object->fetch($object->id, '', true); // true to force load of all users, member of the group |
|
454 | 454 | |
455 | 455 | if (!empty($object->members)) { |
456 | 456 | foreach ($object->members as $useringroup) { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } |
81 | 81 | $result = restrictedArea($user, 'tax', $object->id, 'chargesociales', 'charges'); |
82 | 82 | |
83 | -$permissiontoadd = $user->hasRight('tax', 'charges', 'creer'); // Used by the include of actions_dellink.inc.php |
|
83 | +$permissiontoadd = $user->hasRight('tax', 'charges', 'creer'); // Used by the include of actions_dellink.inc.php |
|
84 | 84 | |
85 | 85 | |
86 | 86 | /* |
@@ -81,7 +81,7 @@ |
||
81 | 81 | } |
82 | 82 | $result = restrictedArea($user, 'tax', '', 'tva', 'charges'); |
83 | 83 | |
84 | -$permissiontoadd = $user->hasRight('tax', 'charges', 'creer'); // Used by the include of actions_dellink.inc.php |
|
84 | +$permissiontoadd = $user->hasRight('tax', 'charges', 'creer'); // Used by the include of actions_dellink.inc.php |
|
85 | 85 | |
86 | 86 | |
87 | 87 | /* |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * View |
70 | 70 | */ |
71 | 71 | |
72 | -$form = new Form($db); // Used in dol_banner_tab |
|
72 | +$form = new Form($db); // Used in dol_banner_tab |
|
73 | 73 | |
74 | 74 | llxHeader('', $langs->trans("Payment")); |
75 | 75 |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $object->fields = dol_sort_array($object->fields, 'position'); |
117 | 117 | $arrayfields = dol_sort_array($arrayfields, 'position'); |
118 | -'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
118 | +'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
119 | 119 | |
120 | 120 | // Access control |
121 | 121 | // TODO Open this page to a given permission so a sale representative can modify change rates. Permission should be added into module multicurrency. |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | print ' - <span class="opacitymedium">' . $obj->name . '</span>'; |
611 | 611 | print "</td>\n"; |
612 | 612 | |
613 | - if (! $i) { |
|
613 | + if (!$i) { |
|
614 | 614 | $totalarray['nbfield']++; |
615 | 615 | } |
616 | 616 | } |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | print '<td class="tdoverflowmax200">'; |
621 | 621 | print $obj->rate; |
622 | 622 | print "</td>\n"; |
623 | - if (! $i) { |
|
623 | + if (!$i) { |
|
624 | 624 | $totalarray['nbfield']++; |
625 | 625 | } |
626 | 626 | } |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | print '<td class="tdoverflowmax200">'; |
631 | 631 | print $obj->rate_indirect; |
632 | 632 | print "</td>\n"; |
633 | - if (! $i) { |
|
633 | + if (!$i) { |
|
634 | 634 | $totalarray['nbfield']++; |
635 | 635 | } |
636 | 636 | } |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | |
639 | 639 | // Fields from hook |
640 | 640 | $parameters = array('arrayfields' => $arrayfields, 'obj' => $obj); |
641 | - $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters); // Note that $action and $object may have been modified by hook |
|
641 | + $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters); // Note that $action and $object may have been modified by hook |
|
642 | 642 | print $hookmanager->resPrint; |
643 | 643 | |
644 | 644 | // Action |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search |
44 | 44 | $backtopage = GETPOST('backtopage', 'alpha'); |
45 | 45 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
46 | -$lineid = GETPOSTINT('lineid'); |
|
46 | +$lineid = GETPOSTINT('lineid'); |
|
47 | 47 | $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09'); |
48 | 48 | |
49 | 49 | // Initialize technical objects |
@@ -811,7 +811,7 @@ discard block |
||
811 | 811 | print '<tr class="liste_titre">'; |
812 | 812 | if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { |
813 | 813 | print getTitleFieldOfList(($mode != 'kanban' ? $selectedfields : ''), 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ') . "\n"; |
814 | - $totalarray['nbfield']++; // For the column action |
|
814 | + $totalarray['nbfield']++; // For the column action |
|
815 | 815 | } |
816 | 816 | foreach ($object->fields as $key => $val) { |
817 | 817 | $cssforfield = (empty($val['csslist']) ? (empty($val['css']) ? '' : $val['css']) : $val['csslist']); |
@@ -824,7 +824,7 @@ discard block |
||
824 | 824 | } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) { |
825 | 825 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
826 | 826 | } |
827 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
827 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
828 | 828 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
829 | 829 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n"; |
830 | 830 | $totalarray['nbfield']++; |
@@ -845,7 +845,7 @@ discard block |
||
845 | 845 | // Action column |
846 | 846 | if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { |
847 | 847 | print getTitleFieldOfList(($mode != 'kanban' ? $selectedfields : ''), 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ') . "\n"; |
848 | - $totalarray['nbfield']++; // For the column action |
|
848 | + $totalarray['nbfield']++; // For the column action |
|
849 | 849 | } |
850 | 850 | print '</tr>' . "\n"; |
851 | 851 |