@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | class FormCompany extends Form |
43 | 43 | { |
44 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
44 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
45 | 45 | /** |
46 | 46 | * Return list of labels (translated) of third parties type |
47 | 47 | * |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function typent_array($mode = 0, $filter = '') |
53 | 53 | { |
54 | - // phpcs:enable |
|
54 | + // phpcs:enable |
|
55 | 55 | global $langs, $mysoc; |
56 | 56 | |
57 | 57 | $effs = array(); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return $effs; |
93 | 93 | } |
94 | 94 | |
95 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
95 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
96 | 96 | /** |
97 | 97 | * Return the list of entries for staff (no translation, it is number ranges) |
98 | 98 | * |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function effectif_array($mode = 0, $filter = '') |
104 | 104 | { |
105 | - // phpcs:enable |
|
105 | + // phpcs:enable |
|
106 | 106 | $effs = array(); |
107 | 107 | |
108 | 108 | $sql = "SELECT id, code, libelle as label"; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | |
140 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
140 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
141 | 141 | /** |
142 | 142 | * Affiche formulaire de selection des modes de reglement |
143 | 143 | * |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function form_prospect_level($page, $selected = 0, $htmlname = 'prospect_level_id', $empty = 0) |
151 | 151 | { |
152 | - // phpcs:enable |
|
152 | + // phpcs:enable |
|
153 | 153 | global $user, $langs; |
154 | 154 | |
155 | 155 | print '<form method="post" action="' . $page . '">'; |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | print '</form>'; |
242 | 242 | } |
243 | 243 | |
244 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
244 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
245 | 245 | /** |
246 | 246 | * Returns the drop-down list of departments/provinces/cantons for all countries or for a given country. |
247 | 247 | * In the case of an all-country list, the display breaks on the country. |
@@ -255,11 +255,11 @@ discard block |
||
255 | 255 | */ |
256 | 256 | public function select_departement($selected = '', $country_codeid = 0, $htmlname = 'state_id') |
257 | 257 | { |
258 | - // phpcs:enable |
|
258 | + // phpcs:enable |
|
259 | 259 | print $this->select_state($selected, $country_codeid, $htmlname); |
260 | 260 | } |
261 | 261 | |
262 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
262 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
263 | 263 | /** |
264 | 264 | * Returns the drop-down list of departments/provinces/cantons for all countries or for a given country. |
265 | 265 | * In the case of an all-country list, the display breaks on the country. |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | */ |
276 | 276 | public function select_state($selected = 0, $country_codeid = 0, $htmlname = 'state_id', $morecss = 'maxwidth200onsmartphone minwidth300') |
277 | 277 | { |
278 | - // phpcs:enable |
|
278 | + // phpcs:enable |
|
279 | 279 | global $conf, $langs, $user; |
280 | 280 | |
281 | 281 | dol_syslog(get_class($this) . "::select_departement selected=" . $selected . ", country_codeid=" . $country_codeid, LOG_DEBUG); |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | return $out; |
372 | 372 | } |
373 | 373 | |
374 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
374 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
375 | 375 | /** |
376 | 376 | * Returns the drop-down list of departments/provinces/cantons for all countries or for a given country. |
377 | 377 | * In the case of an all-country list, the display breaks on the country. |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | return $html . '</script><span id="target_' . $htmlname . '">' . $this->select_state($selected, $country_codeid, $htmlname, $morecss) . '</span>'; |
399 | 399 | } |
400 | 400 | |
401 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
401 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
402 | 402 | /** |
403 | 403 | * Retourne la liste deroulante des regions actives don't le pays est actif |
404 | 404 | * La cle de la liste est le code (il peut y avoir plusieurs entree pour |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | */ |
412 | 412 | public function select_region($selected = '', $htmlname = 'region_id') |
413 | 413 | { |
414 | - // phpcs:enable |
|
414 | + // phpcs:enable |
|
415 | 415 | global $conf, $langs; |
416 | 416 | $langs->load("dict"); |
417 | 417 | |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | } |
458 | 458 | } |
459 | 459 | |
460 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
460 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
461 | 461 | /** |
462 | 462 | * Return combo list with people title |
463 | 463 | * |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | */ |
470 | 470 | public function select_civility($selected = '', $htmlname = 'civility_id', $morecss = 'maxwidth150', $addjscombo = 1) |
471 | 471 | { |
472 | - // phpcs:enable |
|
472 | + // phpcs:enable |
|
473 | 473 | global $conf, $langs, $user; |
474 | 474 | $langs->load("dict"); |
475 | 475 | |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | return $out; |
517 | 517 | } |
518 | 518 | |
519 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
519 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
520 | 520 | /** |
521 | 521 | * Return the list of all juridical entity types for all countries or a specific country. |
522 | 522 | * A country separator is included in case the list for all countries is returned. |
@@ -530,11 +530,11 @@ discard block |
||
530 | 530 | */ |
531 | 531 | public function select_forme_juridique($selected = '', $country_codeid = 0, $filter = '') |
532 | 532 | { |
533 | - // phpcs:enable |
|
533 | + // phpcs:enable |
|
534 | 534 | print $this->select_juridicalstatus($selected, $country_codeid, $filter); |
535 | 535 | } |
536 | 536 | |
537 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
537 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
538 | 538 | /** |
539 | 539 | * Return the list of all juridical entity types for all countries or a specific country. |
540 | 540 | * A country separator is included in case the list for all countries is returned. |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | */ |
549 | 549 | public function select_juridicalstatus($selected = '', $country_codeid = 0, $filter = '', $htmlname = 'forme_juridique_code', $morecss = '') |
550 | 550 | { |
551 | - // phpcs:enable |
|
551 | + // phpcs:enable |
|
552 | 552 | global $conf, $langs, $user; |
553 | 553 | $langs->load("dict"); |
554 | 554 | |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | return 'ErrorBadValueForParameterRenderMode'; // Should not happened |
895 | 895 | } |
896 | 896 | |
897 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
897 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
898 | 898 | /** |
899 | 899 | * Return a select list with zip codes and their town |
900 | 900 | * |
@@ -909,7 +909,7 @@ discard block |
||
909 | 909 | */ |
910 | 910 | public function select_ziptown($selected = '', $htmlname = 'zipcode', $fields = array(), $fieldsize = 0, $disableautocomplete = 0, $moreattrib = '', $morecss = '') |
911 | 911 | { |
912 | - // phpcs:enable |
|
912 | + // phpcs:enable |
|
913 | 913 | global $conf; |
914 | 914 | |
915 | 915 | $out = ''; |
@@ -928,7 +928,7 @@ discard block |
||
928 | 928 | return $out; |
929 | 929 | } |
930 | 930 | |
931 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
931 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
932 | 932 | /** |
933 | 933 | * Return HTML string to use as input of professional id into a HTML page (siren, siret, etc...) |
934 | 934 | * |
@@ -941,7 +941,7 @@ discard block |
||
941 | 941 | */ |
942 | 942 | public function get_input_id_prof($idprof, $htmlname, $preselected, $country_code, $morecss = 'maxwidth200') |
943 | 943 | { |
944 | - // phpcs:enable |
|
944 | + // phpcs:enable |
|
945 | 945 | global $conf, $langs, $hookmanager; |
946 | 946 | |
947 | 947 | $formlength = 0; |
@@ -1006,7 +1006,7 @@ discard block |
||
1006 | 1006 | return $out; |
1007 | 1007 | } |
1008 | 1008 | |
1009 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1009 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1010 | 1010 | /** |
1011 | 1011 | * Return a HTML select with localtax values for thirdparties |
1012 | 1012 | * |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | */ |
1018 | 1018 | public function select_localtax($local, $selected, $htmlname) |
1019 | 1019 | { |
1020 | - // phpcs:enable |
|
1020 | + // phpcs:enable |
|
1021 | 1021 | $tax = get_localtax_by_third($local); |
1022 | 1022 | |
1023 | 1023 | if ($tax) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $this->withbodyreadonly = 0; |
123 | 123 | } |
124 | 124 | |
125 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
125 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
126 | 126 | /** |
127 | 127 | * Show the form to input an sms. |
128 | 128 | * |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function show_form($morecss = 'titlefield', $showform = 1) |
134 | 134 | { |
135 | - // phpcs:enable |
|
135 | + // phpcs:enable |
|
136 | 136 | global $conf, $langs, $form; |
137 | 137 | |
138 | 138 | if (!is_object($form)) { |
@@ -209,10 +209,10 @@ |
||
209 | 209 | } else { |
210 | 210 | print '<tr><td class="' . $morecss . '">' . $langs->trans("SmsFrom") . "</td><td>"; |
211 | 211 | if (getDolGlobalString('MAIN_SMS_SENDMODE')) { |
212 | - $sendmode = getDolGlobalString('MAIN_SMS_SENDMODE'); // $conf->global->MAIN_SMS_SENDMODE looks like a value 'module' |
|
213 | - $classmoduleofsender = getDolGlobalString('MAIN_MODULE_' . strtoupper($sendmode) . '_SMS', $sendmode); // $conf->global->MAIN_MODULE_XXX_SMS looks like a value 'class@module' |
|
212 | + $sendmode = getDolGlobalString('MAIN_SMS_SENDMODE'); // $conf->global->MAIN_SMS_SENDMODE looks like a value 'module' |
|
213 | + $classmoduleofsender = getDolGlobalString('MAIN_MODULE_' . strtoupper($sendmode) . '_SMS', $sendmode); // $conf->global->MAIN_MODULE_XXX_SMS looks like a value 'class@module' |
|
214 | 214 | if ($classmoduleofsender == 'ovh') { |
215 | - $classmoduleofsender = 'ovhsms@ovh'; // For backward compatibility |
|
215 | + $classmoduleofsender = 'ovhsms@ovh'; // For backward compatibility |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | $tmp = explode('@', $classmoduleofsender); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $file_lang_osencoded = dol_osencode($file_lang); |
320 | 320 | |
321 | 321 | //$filelangexists = is_file($file_lang_osencoded); |
322 | - $filelangexists = @is_file($file_lang_osencoded); // avoid [php:warn] |
|
322 | + $filelangexists = @is_file($file_lang_osencoded); // avoid [php:warn] |
|
323 | 323 | |
324 | 324 | //dol_syslog(get_class($this).'::Load Try to read for alt='.$alt.' langofdir='.$langofdir.' domain='.$domain.' newdomain='.$newdomain.' modulename='.$modulename.' file_lang='.$file_lang." => filelangexists=".$filelangexists); |
325 | 325 | //print 'Try to read for alt='.$alt.' langofdir='.$langofdir.' domain='.$domain.' newdomain='.$newdomain.' modulename='.$modulename.' this->_tab_loaded[newdomain]='.$this->_tab_loaded[$newdomain].' file_lang='.$file_lang." => filelangexists=".$filelangexists."\n"; |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | if ($obj) { |
1187 | 1187 | // If a translation exists, we use it lese we use the default label |
1188 | 1188 | $this->cache_currencies[$obj->code_iso]['label'] = ($obj->code_iso && $this->trans("Currency" . $obj->code_iso) != "Currency" . $obj->code_iso ? $this->trans("Currency" . $obj->code_iso) : ($obj->label != '-' ? $obj->label : '')); |
1189 | - $this->cache_currencies[$obj->code_iso]['unicode'] = (array)json_decode((empty($obj->unicode) ? '' : $obj->unicode), true); |
|
1189 | + $this->cache_currencies[$obj->code_iso]['unicode'] = (array) json_decode((empty($obj->unicode) ? '' : $obj->unicode), true); |
|
1190 | 1190 | $label[$obj->code_iso] = $this->cache_currencies[$obj->code_iso]['label']; |
1191 | 1191 | } |
1192 | 1192 | $i++; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | |
56 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
56 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
57 | 57 | /** |
58 | 58 | * Show list of action status |
59 | 59 | * |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function form_select_status_action($formname, $selected, $canedit = 1, $htmlname = 'complete', $showempty = 0, $onlyselect = 0, $morecss = 'maxwidth100') |
70 | 70 | { |
71 | - // phpcs:enable |
|
71 | + // phpcs:enable |
|
72 | 72 | global $langs, $conf; |
73 | 73 | |
74 | 74 | $listofstatus = array( |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | |
367 | 367 | |
368 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
368 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
369 | 369 | /** |
370 | 370 | * Output html select list of type of event |
371 | 371 | * |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | */ |
382 | 382 | public function select_type_actions($selected = '', $htmlname = 'actioncode', $excludetype = '', $onlyautoornot = 0, $hideinfohelp = 0, $multiselect = 0, $nooutput = 0, $morecss = 'minwidth300') |
383 | 383 | { |
384 | - // phpcs:enable |
|
384 | + // phpcs:enable |
|
385 | 385 | global $langs, $user, $form; |
386 | 386 | |
387 | 387 | if (!is_object($form)) { |
@@ -366,7 +366,7 @@ |
||
366 | 366 | $caction = new CActionComm($this->db); |
367 | 367 | |
368 | 368 | // Suggest a list with manual events or all auto events |
369 | - $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. |
|
369 | + $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. |
|
370 | 370 | if (empty($multiselect)) { |
371 | 371 | // Add empty line at start only if no multiselect |
372 | 372 | array_unshift($arraylist, ' '); |
@@ -792,7 +792,7 @@ |
||
792 | 792 | if (is_array($selected)) { |
793 | 793 | $selectedarray = $selected; |
794 | 794 | } elseif ($selected == 99) { |
795 | - $selectedarray = array(0,1); |
|
795 | + $selectedarray = array(0, 1); |
|
796 | 796 | } else { |
797 | 797 | $selectedarray = explode(',', $selected); |
798 | 798 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $this->db = $db; |
65 | 65 | } |
66 | 66 | |
67 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
67 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * Output a combo list with projects qualified for a third party / user |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function select_projects($socid = -1, $selected = '', $htmlname = 'projectid', $maxlength = 16, $option_only = 0, $show_empty = 1, $discard_closed = 0, $forcefocus = 0, $disabled = 0, $mode = 0, $filterkey = '', $nooutput = 0, $forceaddid = 0, $morecss = '', $htmlid = '', $morefilter = '') |
91 | 91 | { |
92 | - // phpcs:enable |
|
92 | + // phpcs:enable |
|
93 | 93 | global $langs, $conf, $form; |
94 | 94 | |
95 | 95 | $selected_input_value = ''; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | } |
133 | 133 | } |
134 | 134 | |
135 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
135 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
136 | 136 | |
137 | 137 | /** |
138 | 138 | * Returns an array with projects qualified for a third party |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public function select_projects_list($socid = -1, $selected = 0, $htmlname = 'projectid', $maxlength = 24, $option_only = 0, $show_empty = 1, $discard_closed = 0, $forcefocus = 0, $disabled = 0, $mode = 0, $filterkey = '', $nooutput = 0, $forceaddid = 0, $htmlid = '', $morecss = 'maxwidth500', $morefilter = '') |
159 | 159 | { |
160 | - // phpcs:enable |
|
160 | + // phpcs:enable |
|
161 | 161 | global $user, $conf, $langs; |
162 | 162 | |
163 | 163 | |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | } |
530 | 530 | |
531 | 531 | |
532 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
532 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
533 | 533 | |
534 | 534 | /** |
535 | 535 | * Build a HTML select list of element of same thirdparty to suggest to link them to project |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | */ |
545 | 545 | public function select_element($table_element, $socid = 0, $morecss = '', $limitonstatus = -2, $projectkey = "fk_projet", $placeholder = '') |
546 | 546 | { |
547 | - // phpcs:enable |
|
547 | + // phpcs:enable |
|
548 | 548 | global $conf, $langs; |
549 | 549 | |
550 | 550 | if ($table_element == 'projet_task') { |
@@ -1337,7 +1337,7 @@ discard block |
||
1337 | 1337 | return '=?' . $conf->file->character_set_client . '?B?' . base64_encode($stringtoencode) . '?='; |
1338 | 1338 | } |
1339 | 1339 | |
1340 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1340 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1341 | 1341 | /** |
1342 | 1342 | * Read a file on disk and return encoded content for emails (mode = 'mail') |
1343 | 1343 | * |
@@ -1346,7 +1346,7 @@ discard block |
||
1346 | 1346 | */ |
1347 | 1347 | private function _encode_file($sourcefile) |
1348 | 1348 | { |
1349 | - // phpcs:enable |
|
1349 | + // phpcs:enable |
|
1350 | 1350 | $newsourcefile = dol_osencode($sourcefile); |
1351 | 1351 | |
1352 | 1352 | if (is_readable($newsourcefile)) { |
@@ -1361,7 +1361,7 @@ discard block |
||
1361 | 1361 | } |
1362 | 1362 | |
1363 | 1363 | |
1364 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1364 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1365 | 1365 | /** |
1366 | 1366 | * Write content of a SMTP request into a dump file (mode = all) |
1367 | 1367 | * Used for debugging. |
@@ -1371,7 +1371,7 @@ discard block |
||
1371 | 1371 | */ |
1372 | 1372 | public function dump_mail() |
1373 | 1373 | { |
1374 | - // phpcs:enable |
|
1374 | + // phpcs:enable |
|
1375 | 1375 | global $dolibarr_main_data_root; |
1376 | 1376 | |
1377 | 1377 | if (@is_writable($dolibarr_main_data_root)) { // Avoid fatal error on fopen with open_basedir |
@@ -1402,7 +1402,7 @@ discard block |
||
1402 | 1402 | } |
1403 | 1403 | } |
1404 | 1404 | |
1405 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1405 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1406 | 1406 | /** |
1407 | 1407 | * Save content if mail is in error |
1408 | 1408 | * Used for debugging. |
@@ -1499,7 +1499,7 @@ discard block |
||
1499 | 1499 | } |
1500 | 1500 | |
1501 | 1501 | |
1502 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1502 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1503 | 1503 | /** |
1504 | 1504 | * Create SMTP headers (mode = 'mail') |
1505 | 1505 | * |
@@ -1507,7 +1507,7 @@ discard block |
||
1507 | 1507 | */ |
1508 | 1508 | public function write_smtpheaders() |
1509 | 1509 | { |
1510 | - // phpcs:enable |
|
1510 | + // phpcs:enable |
|
1511 | 1511 | $out = ""; |
1512 | 1512 | $host = dol_getprefix('email'); |
1513 | 1513 | |
@@ -1571,7 +1571,7 @@ discard block |
||
1571 | 1571 | } |
1572 | 1572 | |
1573 | 1573 | |
1574 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1574 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1575 | 1575 | /** |
1576 | 1576 | * Create header MIME (mode = 'mail') |
1577 | 1577 | * |
@@ -1581,7 +1581,7 @@ discard block |
||
1581 | 1581 | */ |
1582 | 1582 | public function write_mimeheaders($filename_list, $mimefilename_list) |
1583 | 1583 | { |
1584 | - // phpcs:enable |
|
1584 | + // phpcs:enable |
|
1585 | 1585 | $mimedone = 0; |
1586 | 1586 | $out = ""; |
1587 | 1587 | |
@@ -1601,7 +1601,7 @@ discard block |
||
1601 | 1601 | return $out; |
1602 | 1602 | } |
1603 | 1603 | |
1604 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1604 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1605 | 1605 | /** |
1606 | 1606 | * Return email content (mode = 'mail') |
1607 | 1607 | * |
@@ -1610,7 +1610,7 @@ discard block |
||
1610 | 1610 | */ |
1611 | 1611 | public function write_body($msgtext) |
1612 | 1612 | { |
1613 | - // phpcs:enable |
|
1613 | + // phpcs:enable |
|
1614 | 1614 | global $conf; |
1615 | 1615 | |
1616 | 1616 | $out = ''; |
@@ -1694,7 +1694,7 @@ discard block |
||
1694 | 1694 | return $out; |
1695 | 1695 | } |
1696 | 1696 | |
1697 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1697 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1698 | 1698 | /** |
1699 | 1699 | * Attach file to email (mode = 'mail') |
1700 | 1700 | * |
@@ -1706,7 +1706,7 @@ discard block |
||
1706 | 1706 | */ |
1707 | 1707 | private function write_files($filename_list, $mimetype_list, $mimefilename_list, $cidlist) |
1708 | 1708 | { |
1709 | - // phpcs:enable |
|
1709 | + // phpcs:enable |
|
1710 | 1710 | $out = ''; |
1711 | 1711 | |
1712 | 1712 | $filename_list_size = count($filename_list); |
@@ -1745,7 +1745,7 @@ discard block |
||
1745 | 1745 | } |
1746 | 1746 | |
1747 | 1747 | |
1748 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1748 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1749 | 1749 | /** |
1750 | 1750 | * Attach an image to email (mode = 'mail') |
1751 | 1751 | * |
@@ -1754,7 +1754,7 @@ discard block |
||
1754 | 1754 | */ |
1755 | 1755 | public function write_images($images_list) |
1756 | 1756 | { |
1757 | - // phpcs:enable |
|
1757 | + // phpcs:enable |
|
1758 | 1758 | $out = ''; |
1759 | 1759 | |
1760 | 1760 | if (is_array($images_list)) { |
@@ -1776,7 +1776,7 @@ discard block |
||
1776 | 1776 | } |
1777 | 1777 | |
1778 | 1778 | |
1779 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1779 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1780 | 1780 | /** |
1781 | 1781 | * Try to create a socket connection |
1782 | 1782 | * |
@@ -1786,7 +1786,7 @@ discard block |
||
1786 | 1786 | */ |
1787 | 1787 | public function check_server_port($host, $port) |
1788 | 1788 | { |
1789 | - // phpcs:enable |
|
1789 | + // phpcs:enable |
|
1790 | 1790 | global $conf; |
1791 | 1791 | |
1792 | 1792 | $_retVal = 0; |
@@ -1857,7 +1857,7 @@ discard block |
||
1857 | 1857 | return $_retVal; |
1858 | 1858 | } |
1859 | 1859 | |
1860 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1860 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1861 | 1861 | /** |
1862 | 1862 | * This function has been modified as provided by SirSir to allow multiline responses when |
1863 | 1863 | * using SMTP Extensions. |
@@ -1868,7 +1868,7 @@ discard block |
||
1868 | 1868 | */ |
1869 | 1869 | public function server_parse($socket, $response) |
1870 | 1870 | { |
1871 | - // phpcs:enable |
|
1871 | + // phpcs:enable |
|
1872 | 1872 | $_retVal = true; // Indicates if Object was created or not |
1873 | 1873 | $server_response = ''; |
1874 | 1874 |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | } |
367 | 367 | if ($emailtoadd && preg_match('/' . preg_quote($emailtoadd, '/') . '/i', $to)) { |
368 | - $emailtoadd = ''; // Email already in the "To" |
|
368 | + $emailtoadd = ''; // Email already in the "To" |
|
369 | 369 | } |
370 | 370 | if ($emailtoadd) { |
371 | 371 | $listofemailstoadd[$key] = $emailtoadd; |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | $this->buildCSS(); |
560 | 560 | } |
561 | 561 | $msg = $this->html; |
562 | - $msg = $this->checkIfHTML($msg); // This add a header and a body including custom CSS to the HTML content |
|
562 | + $msg = $this->checkIfHTML($msg); // This add a header and a body including custom CSS to the HTML content |
|
563 | 563 | } |
564 | 564 | |
565 | 565 | // Replace . alone on a new line with .. to avoid to have SMTP interpret this as end of message |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | $this->buildCSS(); |
707 | 707 | } |
708 | 708 | $msg = $this->html; |
709 | - $msg = $this->checkIfHTML($msg); // This add a header and a body including custom CSS to the HTML content |
|
709 | + $msg = $this->checkIfHTML($msg); // This add a header and a body including custom CSS to the HTML content |
|
710 | 710 | } |
711 | 711 | |
712 | 712 | if ($this->atleastoneimage) { |
@@ -1149,8 +1149,8 @@ discard block |
||
1149 | 1149 | } |
1150 | 1150 | |
1151 | 1151 | $smtperrorcode = 0; |
1152 | - if (! $result) { |
|
1153 | - $smtperrorcode = $this->smtps->lastretval; // SMTP error code |
|
1152 | + if (!$result) { |
|
1153 | + $smtperrorcode = $this->smtps->lastretval; // SMTP error code |
|
1154 | 1154 | dol_syslog("CMailFile::sendfile: mail SMTP error code " . $smtperrorcode, LOG_WARNING); |
1155 | 1155 | |
1156 | 1156 | if ($smtperrorcode == '421') { // Try later |
@@ -1168,7 +1168,7 @@ discard block |
||
1168 | 1168 | } |
1169 | 1169 | } |
1170 | 1170 | |
1171 | - $result = $this->smtps->getErrors(); // applicative error code (not SMTP error code) |
|
1171 | + $result = $this->smtps->getErrors(); // applicative error code (not SMTP error code) |
|
1172 | 1172 | if (empty($this->error) && empty($result)) { |
1173 | 1173 | dol_syslog("CMailFile::sendfile: mail end success", LOG_DEBUG); |
1174 | 1174 | $res = true; |
@@ -1418,7 +1418,7 @@ discard block |
||
1418 | 1418 | |
1419 | 1419 | if (@is_writable($dolibarr_main_data_root)) { // Avoid fatal error on fopen with open_basedir |
1420 | 1420 | $outputfile = $dolibarr_main_data_root . "/dolibarr_mail.log"; |
1421 | - $fp = fopen($outputfile, "w"); // overwrite |
|
1421 | + $fp = fopen($outputfile, "w"); // overwrite |
|
1422 | 1422 | |
1423 | 1423 | if ($this->sendmode == 'mail') { |
1424 | 1424 | fwrite($fp, $this->headers); |
@@ -1683,11 +1683,11 @@ discard block |
||
1683 | 1683 | // Similar code to forge a text from html is also in smtps.class.php |
1684 | 1684 | $strContentAltText = preg_replace("/<br\s*[^>]*>/", " ", $strContent); |
1685 | 1685 | // TODO We could replace <img ...> with [Filename.ext] like Gmail do. |
1686 | - $strContentAltText = html_entity_decode(strip_tags($strContentAltText)); // Remove any HTML tags |
|
1686 | + $strContentAltText = html_entity_decode(strip_tags($strContentAltText)); // Remove any HTML tags |
|
1687 | 1687 | $strContentAltText = trim(wordwrap($strContentAltText, 75, !getDolGlobalString('MAIN_FIX_FOR_BUGGED_MTA') ? "\r\n" : "\n")); |
1688 | 1688 | |
1689 | 1689 | // Check if html header already in message, if not complete the message |
1690 | - $strContent = $this->checkIfHTML($strContent); // This add a header and a body including custom CSS to the HTML content |
|
1690 | + $strContent = $this->checkIfHTML($strContent); // This add a header and a body including custom CSS to the HTML content |
|
1691 | 1691 | } |
1692 | 1692 | |
1693 | 1693 | // Make RFC2045 Compliant, split lines |
@@ -2075,7 +2075,7 @@ discard block |
||
2075 | 2075 | // We save the image to send in disk |
2076 | 2076 | $filecontent = $matches[2][$key]; |
2077 | 2077 | |
2078 | - $cid = 'cid000' . dol_hash($filecontent, 'md5'); // The id must not change if image is same |
|
2078 | + $cid = 'cid000' . dol_hash($filecontent, 'md5'); // The id must not change if image is same |
|
2079 | 2079 | |
2080 | 2080 | $destfiletmp = $images_dir . '/' . $cid . '.' . $ext; |
2081 | 2081 |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | } |
194 | 194 | |
195 | 195 | |
196 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
196 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
197 | 197 | /** |
198 | 198 | * Define array with couple substitution key => substitution value |
199 | 199 | * |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public function get_substitutionarray_user($user, $outputlangs) |
205 | 205 | { |
206 | - // phpcs:enable |
|
206 | + // phpcs:enable |
|
207 | 207 | global $conf, $extrafields; |
208 | 208 | |
209 | 209 | $logotouse = $conf->user->dir_output . '/' . get_exdir(0, 0, 0, 0, $user, 'user') . 'photos/' . getImageFileNameForSize($user->photo, '_small'); |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | } |
290 | 290 | |
291 | 291 | |
292 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
292 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
293 | 293 | /** |
294 | 294 | * Define array with couple substitution key => substitution value |
295 | 295 | * |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | */ |
300 | 300 | public function get_substitutionarray_mysoc($mysoc, $outputlangs) |
301 | 301 | { |
302 | - // phpcs:enable |
|
302 | + // phpcs:enable |
|
303 | 303 | global $conf; |
304 | 304 | |
305 | 305 | if (empty($mysoc->forme_juridique) && !empty($mysoc->forme_juridique_code)) { |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | } |
347 | 347 | |
348 | 348 | |
349 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
349 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
350 | 350 | /** |
351 | 351 | * Define array with couple substitution key => substitution value |
352 | 352 | * For example {company_name}, {company_name_alias} |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | */ |
359 | 359 | public function get_substitutionarray_thirdparty($object, $outputlangs, $array_key = 'company') |
360 | 360 | { |
361 | - // phpcs:enable |
|
361 | + // phpcs:enable |
|
362 | 362 | global $extrafields; |
363 | 363 | |
364 | 364 | if (empty($object->country) && !empty($object->country_code)) { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | return $array_thirdparty; |
413 | 413 | } |
414 | 414 | |
415 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
415 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
416 | 416 | /** |
417 | 417 | * Define array with couple substitution key => substitution value |
418 | 418 | * |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | */ |
424 | 424 | public function get_substitutionarray_contact($object, $outputlangs, $array_key = 'object') |
425 | 425 | { |
426 | - // phpcs:enable |
|
426 | + // phpcs:enable |
|
427 | 427 | global $conf, $extrafields; |
428 | 428 | |
429 | 429 | if (empty($object->country) && !empty($object->country_code)) { |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | } |
473 | 473 | |
474 | 474 | |
475 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
475 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
476 | 476 | /** |
477 | 477 | * Define array with couple substitution key => substitution value |
478 | 478 | * |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | */ |
482 | 482 | public function get_substitutionarray_other($outputlangs) |
483 | 483 | { |
484 | - // phpcs:enable |
|
484 | + // phpcs:enable |
|
485 | 485 | global $conf; |
486 | 486 | |
487 | 487 | $now = dol_now('gmt'); // gmt |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | } |
513 | 513 | |
514 | 514 | |
515 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
515 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
516 | 516 | /** |
517 | 517 | * Define array with couple substitution key => substitution value |
518 | 518 | * Note that vars into substitutions array are formatted. |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | */ |
525 | 525 | public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object') |
526 | 526 | { |
527 | - // phpcs:enable |
|
527 | + // phpcs:enable |
|
528 | 528 | global $extrafields; |
529 | 529 | |
530 | 530 | $sumpayed = $sumdeposit = $sumcreditnote = ''; |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | return $resarray; |
716 | 716 | } |
717 | 717 | |
718 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
718 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
719 | 719 | /** |
720 | 720 | * Define array with couple substitution key => substitution value |
721 | 721 | * Note that vars into substitutions array are formatted. |
@@ -727,7 +727,7 @@ discard block |
||
727 | 727 | */ |
728 | 728 | public function get_substitutionarray_lines($line, $outputlangs, $linenumber = 0) |
729 | 729 | { |
730 | - // phpcs:enable |
|
730 | + // phpcs:enable |
|
731 | 731 | $resarray = array( |
732 | 732 | 'line_pos' => $linenumber, |
733 | 733 | 'line_fulldesc' => doc_getlinedesc($line, $outputlangs), |
@@ -839,7 +839,7 @@ discard block |
||
839 | 839 | return $resarray; |
840 | 840 | } |
841 | 841 | |
842 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
842 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
843 | 843 | /** |
844 | 844 | * Define array with couple substitution key => substitution value |
845 | 845 | * Note that vars into substitutions array are formatted. |
@@ -851,7 +851,7 @@ discard block |
||
851 | 851 | */ |
852 | 852 | public function get_substitutionarray_shipment($object, $outputlangs, $array_key = 'object') |
853 | 853 | { |
854 | - // phpcs:enable |
|
854 | + // phpcs:enable |
|
855 | 855 | global $extrafields; |
856 | 856 | |
857 | 857 | include_once DOL_DOCUMENT_ROOT . '/core/lib/product.lib.php'; |
@@ -908,7 +908,7 @@ discard block |
||
908 | 908 | } |
909 | 909 | |
910 | 910 | |
911 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
911 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
912 | 912 | /** |
913 | 913 | * Define array with couple substitution key => substitution value |
914 | 914 | * |
@@ -919,7 +919,7 @@ discard block |
||
919 | 919 | */ |
920 | 920 | public function get_substitutionarray_each_var_object(&$object, $outputlangs, $recursive = 1) |
921 | 921 | { |
922 | - // phpcs:enable |
|
922 | + // phpcs:enable |
|
923 | 923 | $array_other = array(); |
924 | 924 | if (!empty($object)) { |
925 | 925 | foreach ($object as $key => $value) { |
@@ -948,7 +948,7 @@ discard block |
||
948 | 948 | } |
949 | 949 | |
950 | 950 | |
951 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
951 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
952 | 952 | /** |
953 | 953 | * Fill array with couple extrafield key => extrafield value |
954 | 954 | * Note that vars into substitutions array are formatted. |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | */ |
963 | 963 | public function fill_substitutionarray_with_extrafields($object, $array_to_fill, $extrafields, $array_key, $outputlangs) |
964 | 964 | { |
965 | - // phpcs:enable |
|
965 | + // phpcs:enable |
|
966 | 966 | global $conf; |
967 | 967 | |
968 | 968 | if ($extrafields->attributes[$object->table_element]['count'] > 0) { |
@@ -166,8 +166,8 @@ discard block |
||
166 | 166 | public $posxlabel; |
167 | 167 | public $posxup; |
168 | 168 | public $posxref; |
169 | - public $posxpicture; // For picture |
|
170 | - public $posxdesc; // For description |
|
169 | + public $posxpicture; // For picture |
|
170 | + public $posxdesc; // For description |
|
171 | 171 | public $posxqty; |
172 | 172 | public $posxpuht; |
173 | 173 | public $posxtva; |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | |
547 | 547 | if (get_class($object) == 'CommandeFournisseur') { |
548 | 548 | /** @var CommandeFournisseur $object*/ |
549 | - $object->date_validation = $object->date_valid; |
|
549 | + $object->date_validation = $object->date_valid; |
|
550 | 550 | $object->date_commande = $object->date; |
551 | 551 | } |
552 | 552 | $resarray = array( |
@@ -1500,7 +1500,7 @@ discard block |
||
1500 | 1500 | * @param stdClass $b |
1501 | 1501 | * @return int<-1,1> |
1502 | 1502 | */ |
1503 | - static function ($a, $b) { |
|
1503 | + static function($a, $b) { |
|
1504 | 1504 | return ($a->rank > $b->rank) ? 1 : -1; |
1505 | 1505 | } |
1506 | 1506 | ); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->db = $db; |
50 | 50 | } |
51 | 51 | |
52 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
52 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
53 | 53 | /** |
54 | 54 | * Return list of social contributions. |
55 | 55 | * Use mysoc->country_id or mysoc->country_code so they must be defined. |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function select_type_socialcontrib($selected = '', $htmlname = 'actioncode', $useempty = 0, $maxlen = 40, $help = 1, $morecss = 'minwidth300', $noerrorifempty = 0) |
67 | 67 | { |
68 | - // phpcs:enable |
|
68 | + // phpcs:enable |
|
69 | 69 | global $conf, $db, $langs, $user, $mysoc; |
70 | 70 | |
71 | 71 | if (empty($mysoc->country_id) && empty($mysoc->country_code)) { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | |
71 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
71 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
72 | 72 | /** |
73 | 73 | * Load array this->attributes with list of fields per object that need an alternate translation. The object and field must be managed with |
74 | 74 | * the widgetForTranslation() method. |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function fetch_name_extralanguages($elementtype, $forceload = false) |
83 | 83 | { |
84 | - // phpcs:enable |
|
84 | + // phpcs:enable |
|
85 | 85 | global $conf; |
86 | 86 | |
87 | 87 | if (empty($elementtype)) { |