@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $this->heightforfooter = $this->marge_basse + 8; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 115 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 116 | 116 | /** |
| 117 | 117 | * Function to create pdf of company bank account sepa mandate |
| 118 | 118 | * |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null) |
| 129 | 129 | { |
| 130 | - // phpcs:enable |
|
| 130 | + // phpcs:enable |
|
| 131 | 131 | global $conf, $hookmanager, $langs, $user, $mysoc; |
| 132 | 132 | |
| 133 | 133 | if (!is_object($outputlangs)) { |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | |
| 472 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 472 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 473 | 473 | /** |
| 474 | 474 | * Show table for lines |
| 475 | 475 | * |
@@ -484,15 +484,15 @@ discard block |
||
| 484 | 484 | */ |
| 485 | 485 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
| 486 | 486 | { |
| 487 | - // phpcs:enable |
|
| 487 | + // phpcs:enable |
|
| 488 | 488 | global $conf, $mysoc; |
| 489 | 489 | |
| 490 | 490 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 491 | 491 | } |
| 492 | 492 | |
| 493 | 493 | |
| 494 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 495 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 494 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 495 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 496 | 496 | /** |
| 497 | 497 | * Show miscellaneous information (payment mode, payment term, ...) |
| 498 | 498 | * |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | */ |
| 505 | 505 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
| 506 | 506 | { |
| 507 | - // phpcs:enable |
|
| 507 | + // phpcs:enable |
|
| 508 | 508 | global $conf, $mysoc; |
| 509 | 509 | |
| 510 | 510 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -528,8 +528,8 @@ discard block |
||
| 528 | 528 | } |
| 529 | 529 | |
| 530 | 530 | |
| 531 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 532 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 531 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 532 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 533 | 533 | /** |
| 534 | 534 | * Show area for the customer to sign |
| 535 | 535 | * |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | */ |
| 542 | 542 | protected function _signature_area(&$pdf, $object, $posy, $outputlangs) |
| 543 | 543 | { |
| 544 | - // phpcs:enable |
|
| 544 | + // phpcs:enable |
|
| 545 | 545 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 546 | 546 | $tab_top = $posy + 4; |
| 547 | 547 | $tab_hl = 4; |
@@ -570,7 +570,7 @@ discard block |
||
| 570 | 570 | } |
| 571 | 571 | |
| 572 | 572 | |
| 573 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 573 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 574 | 574 | /** |
| 575 | 575 | * Show top header of page. |
| 576 | 576 | * |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | */ |
| 583 | 583 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
| 584 | 584 | { |
| 585 | - // phpcs:enable |
|
| 585 | + // phpcs:enable |
|
| 586 | 586 | global $langs, $conf, $mysoc; |
| 587 | 587 | |
| 588 | 588 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | return 0; |
| 664 | 664 | } |
| 665 | 665 | |
| 666 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 666 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 667 | 667 | /** |
| 668 | 668 | * Show footer of page. Need this->emetteur object |
| 669 | 669 | * |
@@ -675,7 +675,7 @@ discard block |
||
| 675 | 675 | */ |
| 676 | 676 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
| 677 | 677 | { |
| 678 | - // phpcs:enable |
|
| 678 | + // phpcs:enable |
|
| 679 | 679 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
| 680 | 680 | return pdf_pagefoot($pdf, $outputlangs, 'PAYMENTORDER_FREE_TEXT', null, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext); |
| 681 | 681 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | |
| 100 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 100 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 101 | 101 | /** |
| 102 | 102 | * Fonction generant le projet sur le disque |
| 103 | 103 | * |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function write_file($object, $outputlangs) |
| 109 | 109 | { |
| 110 | - // phpcs:enable |
|
| 110 | + // phpcs:enable |
|
| 111 | 111 | global $conf, $hookmanager, $langs, $user; |
| 112 | 112 | |
| 113 | 113 | if (!is_object($outputlangs)) { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | |
| 277 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 277 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 278 | 278 | /** |
| 279 | 279 | * Show table for lines |
| 280 | 280 | * |
@@ -289,13 +289,13 @@ discard block |
||
| 289 | 289 | */ |
| 290 | 290 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
| 291 | 291 | { |
| 292 | - // phpcs:enable |
|
| 292 | + // phpcs:enable |
|
| 293 | 293 | global $conf, $mysoc; |
| 294 | 294 | |
| 295 | 295 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 298 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 299 | 299 | /** |
| 300 | 300 | * Show top header of page. |
| 301 | 301 | * |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
| 309 | 309 | { |
| 310 | 310 | global $langs, $conf, $mysoc; |
| 311 | - // phpcs:enable |
|
| 311 | + // phpcs:enable |
|
| 312 | 312 | |
| 313 | 313 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 314 | 314 | |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | return 0; |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 385 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 386 | 386 | /** |
| 387 | 387 | * Show footer of page. Need this->emetteur object |
| 388 | 388 | * |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | */ |
| 395 | 395 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
| 396 | 396 | { |
| 397 | - // phpcs:enable |
|
| 397 | + // phpcs:enable |
|
| 398 | 398 | global $conf; |
| 399 | 399 | |
| 400 | 400 | $showdetails = !getDolGlobalString('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS') ? 0 : $conf->global->MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | |
| 146 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 146 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 147 | 147 | /** |
| 148 | 148 | * Return next free value |
| 149 | 149 | * |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | public function commande_get_num($objsoc, $objforref) |
| 155 | 155 | { |
| 156 | - // phpcs:enable |
|
| 156 | + // phpcs:enable |
|
| 157 | 157 | return $this->getNextValue($objsoc, $objforref); |
| 158 | 158 | } |
| 159 | 159 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | |
| 167 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 167 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 168 | 168 | /** |
| 169 | 169 | * Return next free value |
| 170 | 170 | * |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | */ |
| 175 | 175 | public function payment_get_num($objsoc, $objforref) |
| 176 | 176 | { |
| 177 | - // phpcs:enable |
|
| 177 | + // phpcs:enable |
|
| 178 | 178 | return $this->getNextValue($objsoc, $objforref); |
| 179 | 179 | } |
| 180 | 180 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | abstract class ModelePDFSuppliersPayments extends CommonDocGenerator |
| 28 | 28 | { |
| 29 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 29 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 30 | 30 | /** |
| 31 | 31 | * Return list of active generation models |
| 32 | 32 | * |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 38 | 38 | { |
| 39 | - // phpcs:enable |
|
| 39 | + // phpcs:enable |
|
| 40 | 40 | $type = 'supplier_payment'; |
| 41 | 41 | $list = array(); |
| 42 | 42 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | |
| 147 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 147 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 148 | 148 | /** |
| 149 | 149 | * Function to build pdf onto disk |
| 150 | 150 | * |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 160 | 160 | { |
| 161 | - // phpcs:enable |
|
| 161 | + // phpcs:enable |
|
| 162 | 162 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 163 | 163 | |
| 164 | 164 | if (!is_object($outputlangs)) { |
@@ -481,8 +481,8 @@ discard block |
||
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | 483 | |
| 484 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 485 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 484 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 485 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 486 | 486 | /** |
| 487 | 487 | * Show total to pay |
| 488 | 488 | * |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | */ |
| 495 | 495 | protected function _tableau_cheque(&$pdf, $object, $posy, $outputlangs) |
| 496 | 496 | { |
| 497 | - // phpcs:enable |
|
| 497 | + // phpcs:enable |
|
| 498 | 498 | global $conf, $mysoc; |
| 499 | 499 | |
| 500 | 500 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | return $posy; |
| 545 | 545 | } |
| 546 | 546 | |
| 547 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 547 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 548 | 548 | /** |
| 549 | 549 | * Show table for lines |
| 550 | 550 | * |
@@ -591,7 +591,7 @@ discard block |
||
| 591 | 591 | //$this->printRect($pdf,$this->marge_gauche, $tab_top, $this->page_largeur-$this->marge_gauche-$this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect takes a length in 3rd parameter and 4th parameter |
| 592 | 592 | } |
| 593 | 593 | |
| 594 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 594 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 595 | 595 | /** |
| 596 | 596 | * Show top header of page. |
| 597 | 597 | * |
@@ -807,7 +807,7 @@ discard block |
||
| 807 | 807 | return 0; |
| 808 | 808 | } |
| 809 | 809 | |
| 810 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 810 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 811 | 811 | /** |
| 812 | 812 | * Show footer of page. Need this->emetteur object |
| 813 | 813 | * |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | abstract class ModelePDFFicheinter extends CommonDocGenerator |
| 39 | 39 | { |
| 40 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 40 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 41 | 41 | /** |
| 42 | 42 | * Return list of active generation modules |
| 43 | 43 | * |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 49 | 49 | { |
| 50 | - // phpcs:enable |
|
| 50 | + // phpcs:enable |
|
| 51 | 51 | $type = 'ficheinter'; |
| 52 | 52 | $list = array(); |
| 53 | 53 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | function fichinter_create($db, $object, $modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 85 | 85 | { |
| 86 | - // phpcs:enable |
|
| 86 | + // phpcs:enable |
|
| 87 | 87 | global $conf, $langs; |
| 88 | 88 | $langs->load("ficheinter"); |
| 89 | 89 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $this->posxdesc = $this->marge_gauche + 1; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 120 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 121 | 121 | /** |
| 122 | 122 | * Function to build pdf onto disk |
| 123 | 123 | * |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 133 | 133 | { |
| 134 | - // phpcs:enable |
|
| 134 | + // phpcs:enable |
|
| 135 | 135 | global $user, $langs, $conf, $mysoc, $db, $hookmanager; |
| 136 | 136 | |
| 137 | 137 | if (!is_object($outputlangs)) { |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | } |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 444 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 445 | 445 | /** |
| 446 | 446 | * Show table for lines |
| 447 | 447 | * |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | } |
| 515 | 515 | } |
| 516 | 516 | |
| 517 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 517 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 518 | 518 | /** |
| 519 | 519 | * Show top header of page. |
| 520 | 520 | * |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | return 0; |
| 705 | 705 | } |
| 706 | 706 | |
| 707 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 707 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 708 | 708 | /** |
| 709 | 709 | * Show footer of page. Need this->emetteur object |
| 710 | 710 | * |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | abstract class ModelePDFSupplierProposal extends CommonDocGenerator |
| 40 | 40 | { |
| 41 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 41 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 42 | 42 | /** |
| 43 | 43 | * Return list of active generation modules |
| 44 | 44 | * |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 50 | 50 | { |
| 51 | - // phpcs:enable |
|
| 51 | + // phpcs:enable |
|
| 52 | 52 | $type = 'supplier_proposal'; |
| 53 | 53 | $list = array(); |
| 54 | 54 | |