@@ -1387,7 +1387,7 @@ |
||
1387 | 1387 | |
1388 | 1388 | // build format asciidoc for urls in table |
1389 | 1389 | if (!$error) { |
1390 | - $asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore |
|
1390 | + $asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore |
|
1391 | 1391 | foreach ($groupedUrls as $objectName => $urls) { |
1392 | 1392 | $urlsList = implode(" +\n*", $urls); |
1393 | 1393 | $asciiDocTable .= "|$objectName | \n*$urlsList +\n"; |
@@ -189,7 +189,7 @@ |
||
189 | 189 | <div class="tagtd center noborderbottom"> |
190 | 190 | <input type="submit" id="add-customer-contact" class="button small" value="<?php echo $langs->trans("Add"); ?>"<?php if (!$nbofcontacts) { |
191 | 191 | echo ' disabled'; |
192 | - } ?>> |
|
192 | + } ?>> |
|
193 | 193 | </div> |
194 | 194 | </form> |
195 | 195 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | |
53 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
53 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
54 | 54 | /** |
55 | 55 | * Show a combo list with contracts qualified for a third party |
56 | 56 | * |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function select_contract($socid = -1, $selected = 0, $htmlname = 'contrattid', $maxlength = 16, $showempty = 1, $showRef = 0, $noouput = 0, $morecss = 'minwidth150') |
68 | 68 | { |
69 | - // phpcs:enable |
|
69 | + // phpcs:enable |
|
70 | 70 | global $user, $conf, $langs; |
71 | 71 | |
72 | 72 | $hideunselectables = false; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | return $select_encoder; |
112 | 112 | } |
113 | 113 | |
114 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
114 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
115 | 115 | /** |
116 | 116 | * Print form to select type of barcode |
117 | 117 | * |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function select_barcode_type($selected = 0, $htmlname = 'barcodetype_id', $useempty = 0) |
125 | 125 | { |
126 | - // phpcs:enable |
|
126 | + // phpcs:enable |
|
127 | 127 | print $this->selectBarcodeType($selected, $htmlname, $useempty); |
128 | 128 | } |
129 | 129 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | return $out; |
181 | 181 | } |
182 | 182 | |
183 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
183 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
184 | 184 | /** |
185 | 185 | * Show form to select type of barcode |
186 | 186 | * |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function form_barcode_type($page, $selected = 0, $htmlname = 'barcodetype_id') |
194 | 194 | { |
195 | - // phpcs:enable |
|
195 | + // phpcs:enable |
|
196 | 196 | print $this->formBarcodeType($page, $selected, $htmlname); |
197 | 197 | } |
198 | 198 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | |
63 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
63 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
64 | 64 | /** |
65 | 65 | * Show form to upload a new file. |
66 | 66 | * |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function form_attach_new_file($url, $title = '', $addcancel = 0, $sectionid = 0, $perm = 1, $size = 50, $object = null, $options = '', $useajax = 1, $savingdocmask = '', $linkfiles = 1, $htmlname = 'formuserfile', $accept = '', $sectiondir = '', $usewithoutform = 0, $capture = 0, $disablemulti = 0, $nooutput = 0) |
89 | 89 | { |
90 | - // phpcs:enable |
|
90 | + // phpcs:enable |
|
91 | 91 | global $conf, $langs, $hookmanager; |
92 | 92 | $hookmanager->initHooks(array('formfile')); |
93 | 93 | |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | } |
279 | 279 | } |
280 | 280 | |
281 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
281 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
282 | 282 | /** |
283 | 283 | * Show the box with list of available documents for object |
284 | 284 | * |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | */ |
304 | 304 | public function show_documents($modulepart, $modulesubdir, $filedir, $urlsource, $genallowed, $delallowed = 0, $modelselected = '', $allowgenifempty = 1, $forcenomultilang = 0, $iconPDF = 0, $notused = 0, $noform = 0, $param = '', $title = '', $buttonlabel = '', $codelang = '') |
305 | 305 | { |
306 | - // phpcs:enable |
|
306 | + // phpcs:enable |
|
307 | 307 | $this->numoffiles = 0; |
308 | 308 | print $this->showdocuments($modulepart, $modulesubdir, $filedir, $urlsource, $genallowed, $delallowed, $modelselected, $allowgenifempty, $forcenomultilang, $iconPDF, $notused, $noform, $param, $title, $buttonlabel, $codelang); |
309 | 309 | return $this->numoffiles; |
@@ -1158,7 +1158,7 @@ discard block |
||
1158 | 1158 | } |
1159 | 1159 | |
1160 | 1160 | |
1161 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1161 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1162 | 1162 | /** |
1163 | 1163 | * Show list of documents in $filearray (may be they are all in same directory but may not) |
1164 | 1164 | * This also sync database if $upload_dir is defined. |
@@ -1194,7 +1194,7 @@ discard block |
||
1194 | 1194 | */ |
1195 | 1195 | public function list_of_documents($filearray, $object, $modulepart, $param = '', $forcedownload = 0, $relativepath = '', $permonobject = 1, $useinecm = 0, $textifempty = '', $maxlength = 0, $title = '', $url = '', $showrelpart = 0, $permtoeditline = -1, $upload_dir = '', $sortfield = '', $sortorder = 'ASC', $disablemove = 1, $addfilterfields = 0, $disablecrop = -1, $moreattrondiv = '') |
1196 | 1196 | { |
1197 | - // phpcs:enable |
|
1197 | + // phpcs:enable |
|
1198 | 1198 | global $user, $conf, $langs, $hookmanager, $form; |
1199 | 1199 | global $sortfield, $sortorder, $maxheightmini; |
1200 | 1200 | global $dolibarr_main_url_root; |
@@ -1640,7 +1640,7 @@ discard block |
||
1640 | 1640 | } |
1641 | 1641 | |
1642 | 1642 | |
1643 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1643 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1644 | 1644 | /** |
1645 | 1645 | * Show list of documents in a directory of ECM module. |
1646 | 1646 | * |
@@ -1661,7 +1661,7 @@ discard block |
||
1661 | 1661 | */ |
1662 | 1662 | public function list_of_autoecmfiles($upload_dir, $filearray, $modulepart, $param, $forcedownload = 0, $relativepath = '', $permissiontodelete = 1, $useinecm = 0, $textifempty = '', $maxlength = 0, $url = '', $addfilterfields = 0) |
1663 | 1663 | { |
1664 | - // phpcs:enable |
|
1664 | + // phpcs:enable |
|
1665 | 1665 | global $conf, $langs, $hookmanager, $form; |
1666 | 1666 | global $sortfield, $sortorder; |
1667 | 1667 | global $search_doc_ref; |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | |
527 | 527 | |
528 | 528 | |
529 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
529 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
530 | 530 | /** |
531 | 531 | * Triggered when opened tag is found |
532 | 532 | * |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | */ |
538 | 538 | public function feed_start_element($p, $element, $attrs) |
539 | 539 | { |
540 | - // phpcs:enable |
|
540 | + // phpcs:enable |
|
541 | 541 | $el = $element = strtolower($element); |
542 | 542 | $attrs = array_change_key_case($attrs, CASE_LOWER); |
543 | 543 | |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | } |
616 | 616 | |
617 | 617 | |
618 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
618 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
619 | 619 | /** |
620 | 620 | * Triggered when CDATA is found |
621 | 621 | * |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | */ |
626 | 626 | public function feed_cdata($p, $text) |
627 | 627 | { |
628 | - // phpcs:enable |
|
628 | + // phpcs:enable |
|
629 | 629 | if ($this->_format == 'atom' and $this->incontent) { |
630 | 630 | $this->append_content($text); |
631 | 631 | } else { |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | } |
635 | 635 | } |
636 | 636 | |
637 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
637 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
638 | 638 | /** |
639 | 639 | * Triggered when closed tag is found |
640 | 640 | * |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | */ |
645 | 645 | public function feed_end_element($p, $el) |
646 | 646 | { |
647 | - // phpcs:enable |
|
647 | + // phpcs:enable |
|
648 | 648 | $el = strtolower($el); |
649 | 649 | |
650 | 650 | if ($el == 'item' or $el == 'entry') { |
@@ -693,7 +693,7 @@ discard block |
||
693 | 693 | return $str1; |
694 | 694 | } |
695 | 695 | |
696 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
696 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
697 | 697 | /** |
698 | 698 | * Enter description here ... |
699 | 699 | * |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | */ |
703 | 703 | public function append_content($text) |
704 | 704 | { |
705 | - // phpcs:enable |
|
705 | + // phpcs:enable |
|
706 | 706 | if (!empty($this->initem)) { |
707 | 707 | $this->concat($this->current_item[$this->incontent], $text); |
708 | 708 | } elseif (!empty($this->inchannel)) { |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | return $this->LibStatut($this->status, $mode); |
848 | 848 | } |
849 | 849 | |
850 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
850 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
851 | 851 | /** |
852 | 852 | * Return the status |
853 | 853 | * |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | */ |
858 | 858 | public function LibStatut($status, $mode = 0) |
859 | 859 | { |
860 | - // phpcs:enable |
|
860 | + // phpcs:enable |
|
861 | 861 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
862 | 862 | global $langs; |
863 | 863 | //$langs->load("timespent@timespent"); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $this->withfckeditor = -1; // -1 = Auto |
232 | 232 | } |
233 | 233 | |
234 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
234 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
235 | 235 | /** |
236 | 236 | * Clear list of attached files in send mail form (also stored in session) |
237 | 237 | * |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function clear_attached_files() |
241 | 241 | { |
242 | - // phpcs:enable |
|
242 | + // phpcs:enable |
|
243 | 243 | global $conf, $user; |
244 | 244 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/files.lib.php'; |
245 | 245 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | unset($_SESSION["listofmimes" . $keytoavoidconflict]); |
257 | 257 | } |
258 | 258 | |
259 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
259 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
260 | 260 | /** |
261 | 261 | * Add a file into the list of attached files (stored in SECTION array) |
262 | 262 | * |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function add_attached_files($path, $file = '', $type = '') |
269 | 269 | { |
270 | - // phpcs:enable |
|
270 | + // phpcs:enable |
|
271 | 271 | $listofpaths = array(); |
272 | 272 | $listofnames = array(); |
273 | 273 | $listofmimes = array(); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | } |
301 | 301 | |
302 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
302 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
303 | 303 | /** |
304 | 304 | * Remove a file from the list of attached files (stored in SECTION array) |
305 | 305 | * |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | */ |
309 | 309 | public function remove_attached_files($keytodelete) |
310 | 310 | { |
311 | - // phpcs:enable |
|
311 | + // phpcs:enable |
|
312 | 312 | $listofpaths = array(); |
313 | 313 | $listofnames = array(); |
314 | 314 | $listofmimes = array(); |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | } |
335 | 335 | } |
336 | 336 | |
337 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
337 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
338 | 338 | /** |
339 | 339 | * Return list of attached files (stored in SECTION array) |
340 | 340 | * |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | */ |
343 | 343 | public function get_attached_files() |
344 | 344 | { |
345 | - // phpcs:enable |
|
345 | + // phpcs:enable |
|
346 | 346 | $listofpaths = array(); |
347 | 347 | $listofnames = array(); |
348 | 348 | $listofmimes = array(); |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | return array('paths' => $listofpaths, 'names' => $listofnames, 'mimes' => $listofmimes); |
361 | 361 | } |
362 | 362 | |
363 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
363 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
364 | 364 | /** |
365 | 365 | * Show the form to input an email |
366 | 366 | * this->withfile: 0=No attaches files, 1=Show attached files, 2=Can add new attached files |
@@ -373,11 +373,11 @@ discard block |
||
373 | 373 | */ |
374 | 374 | public function show_form($addfileaction = 'addfile', $removefileaction = 'removefile') |
375 | 375 | { |
376 | - // phpcs:enable |
|
376 | + // phpcs:enable |
|
377 | 377 | print $this->get_form($addfileaction, $removefileaction); |
378 | 378 | } |
379 | 379 | |
380 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
380 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
381 | 381 | /** |
382 | 382 | * Get the form to input an email |
383 | 383 | * this->withfile: 0=No attaches files, 1=Show attached files, 2=Can add new attached files |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | */ |
391 | 391 | public function get_form($addfileaction = 'addfile', $removefileaction = 'removefile') |
392 | 392 | { |
393 | - // phpcs:enable |
|
393 | + // phpcs:enable |
|
394 | 394 | global $conf, $langs, $user, $hookmanager, $form; |
395 | 395 | |
396 | 396 | // Required to show preview wof mail attachments |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | } |
365 | 365 | } |
366 | 366 | |
367 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
367 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
368 | 368 | /** |
369 | 369 | * Add description of a new optional attribute |
370 | 370 | * |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | */ |
395 | 395 | private function create_label($attrname, $label = '', $type = '', $pos = 0, $size = '', $elementtype = '', $unique = 0, $required = 0, $param = '', $alwayseditable = 0, $perms = '', $list = '-1', $help = '', $default = '', $computed = '', $entity = '', $langfile = '', $enabled = '1', $totalizable = 0, $printable = 0, $moreparams = array()) |
396 | 396 | { |
397 | - // phpcs:enable |
|
397 | + // phpcs:enable |
|
398 | 398 | global $conf, $user; |
399 | 399 | |
400 | 400 | if ($elementtype == 'thirdparty') { |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | } |
576 | 576 | } |
577 | 577 | |
578 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
578 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
579 | 579 | /** |
580 | 580 | * Delete description of an optional attribute |
581 | 581 | * |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | */ |
586 | 586 | private function delete_label($attrname, $elementtype = '') |
587 | 587 | { |
588 | - // phpcs:enable |
|
588 | + // phpcs:enable |
|
589 | 589 | global $conf; |
590 | 590 | |
591 | 591 | if ($elementtype == 'thirdparty') { |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | } |
756 | 756 | } |
757 | 757 | |
758 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
758 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
759 | 759 | /** |
760 | 760 | * Modify description of personalized attribute |
761 | 761 | * This is a private method. For public method, use updateExtraField. |
@@ -786,7 +786,7 @@ discard block |
||
786 | 786 | */ |
787 | 787 | private function update_label($attrname, $label, $type, $size, $elementtype, $unique = 0, $required = 0, $pos = 0, $param = array(), $alwayseditable = 0, $perms = '', $list = '0', $help = '', $default = '', $computed = '', $entity = '', $langfile = '', $enabled = '1', $totalizable = 0, $printable = 0, $moreparams = array()) |
788 | 788 | { |
789 | - // phpcs:enable |
|
789 | + // phpcs:enable |
|
790 | 790 | global $conf, $user; |
791 | 791 | dol_syslog(get_class($this) . "::update_label " . $attrname . ", " . $label . ", " . $type . ", " . $size . ", " . $elementtype . ", " . $unique . ", " . $required . ", " . $pos . ", " . $alwayseditable . ", " . $perms . ", " . $list . ", " . $default . ", " . $computed . ", " . $entity . ", " . $langfile . ", " . $enabled . ", " . $totalizable . ", " . $printable); |
792 | 792 | |
@@ -929,7 +929,7 @@ discard block |
||
929 | 929 | } |
930 | 930 | } |
931 | 931 | |
932 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
932 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
933 | 933 | /** |
934 | 934 | * Load the array of extrafields definition $this->attributes |
935 | 935 | * |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | */ |
941 | 941 | public function fetch_name_optionals_label($elementtype, $forceload = false, $attrname = '') |
942 | 942 | { |
943 | - // phpcs:enable |
|
943 | + // phpcs:enable |
|
944 | 944 | global $conf; |
945 | 945 | |
946 | 946 | if (empty($elementtype)) { |