@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | |
| 168 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 168 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 169 | 169 | /** |
| 170 | 170 | * Fonction generant le projet sur le disque |
| 171 | 171 | * |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | public function write_file($object, $outputlangs) |
| 177 | 177 | { |
| 178 | - // phpcs:enable |
|
| 178 | + // phpcs:enable |
|
| 179 | 179 | global $conf, $hookmanager, $langs, $user; |
| 180 | 180 | |
| 181 | 181 | $formproject = new FormProjets($this->db); |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | } |
| 734 | 734 | } |
| 735 | 735 | |
| 736 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 736 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 737 | 737 | /** |
| 738 | 738 | * Show table for lines |
| 739 | 739 | * |
@@ -764,7 +764,7 @@ discard block |
||
| 764 | 764 | $pdf->SetFont('', '', $default_font_size); |
| 765 | 765 | } |
| 766 | 766 | |
| 767 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 767 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 768 | 768 | /** |
| 769 | 769 | * Show top header of page. |
| 770 | 770 | * |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | return 0; |
| 833 | 833 | } |
| 834 | 834 | |
| 835 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 835 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 836 | 836 | /** |
| 837 | 837 | * Show footer of page. Need this->emetteur object |
| 838 | 838 | * |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | abstract class ModeleExpenseReport extends CommonDocGenerator |
| 27 | 27 | { |
| 28 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 28 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 29 | 29 | /** |
| 30 | 30 | * Return list of active models generation |
| 31 | 31 | * |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 37 | 37 | { |
| 38 | - // phpcs:enable |
|
| 38 | + // phpcs:enable |
|
| 39 | 39 | $type = 'expensereport'; |
| 40 | 40 | $list = array(); |
| 41 | 41 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | |
| 177 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 177 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 178 | 178 | /** |
| 179 | 179 | * Function to build pdf onto disk |
| 180 | 180 | * |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 190 | 190 | { |
| 191 | - // phpcs:enable |
|
| 191 | + // phpcs:enable |
|
| 192 | 192 | global $user, $langs, $conf, $mysoc, $db, $hookmanager; |
| 193 | 193 | |
| 194 | 194 | if (!is_object($outputlangs)) { |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | $pdf->writeHTMLCell($this->posxtva - $this->posxcomment - 0.8, 4, $this->posxcomment - 1, $curY, $comment, 0, 1); |
| 636 | 636 | } |
| 637 | 637 | |
| 638 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 638 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 639 | 639 | /** |
| 640 | 640 | * Show top header of page. |
| 641 | 641 | * |
@@ -880,7 +880,7 @@ discard block |
||
| 880 | 880 | return 0; |
| 881 | 881 | } |
| 882 | 882 | |
| 883 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 883 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 884 | 884 | /** |
| 885 | 885 | * Show table for lines |
| 886 | 886 | * |
@@ -1114,7 +1114,7 @@ discard block |
||
| 1114 | 1114 | return -1; |
| 1115 | 1115 | } |
| 1116 | 1116 | |
| 1117 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1117 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1118 | 1118 | /** |
| 1119 | 1119 | * Show footer of page. Need this->emetteur object |
| 1120 | 1120 | * |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | $notetoshow = make_substitutions($notetoshow, $substitutionarray, $outputlangs); |
| 308 | 308 | $notetoshow = convertBackOfficeMediasLinksToPublicLinks($notetoshow); |
| 309 | 309 | |
| 310 | - $tab_top = 95; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 310 | + $tab_top = 95; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 311 | 311 | |
| 312 | 312 | $pdf->SetFont('', '', $default_font_size - 1); |
| 313 | 313 | $pdf->writeHTMLCell(190, 3, $this->posxpiece - 1, $tab_top, dol_htmlentitiesbr($notetoshow), 0, 1); |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | } |
| 797 | 797 | |
| 798 | 798 | // Show recipient |
| 799 | - $posy = 50; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 799 | + $posy = 50; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 800 | 800 | $posx = 100; |
| 801 | 801 | if (getDolGlobalString('MAIN_INVERT_SENDER_RECIPIENT')) { |
| 802 | 802 | $posx = $this->marge_gauche; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | abstract class ModelePDFBom extends CommonDocGenerator |
| 42 | 42 | { |
| 43 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 43 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 44 | 44 | /** |
| 45 | 45 | * Return list of active generation modules |
| 46 | 46 | * |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 52 | 52 | { |
| 53 | - // phpcs:enable |
|
| 53 | + // phpcs:enable |
|
| 54 | 54 | $type = 'bom'; |
| 55 | 55 | $list = array(); |
| 56 | 56 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | abstract class ModelePDFWorkstation extends CommonDocGenerator |
| 42 | 42 | { |
| 43 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 43 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 44 | 44 | /** |
| 45 | 45 | * Return list of active generation modules |
| 46 | 46 | * |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 52 | 52 | { |
| 53 | - // phpcs:enable |
|
| 53 | + // phpcs:enable |
|
| 54 | 54 | $type = 'workstation'; |
| 55 | 55 | $list = array(); |
| 56 | 56 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | abstract class ModelePDFMo extends CommonDocGenerator |
| 42 | 42 | { |
| 43 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 43 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 44 | 44 | /** |
| 45 | 45 | * Return list of active generation modules |
| 46 | 46 | * |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 52 | 52 | { |
| 53 | - // phpcs:enable |
|
| 53 | + // phpcs:enable |
|
| 54 | 54 | $type = 'mrp'; |
| 55 | 55 | $list = array(); |
| 56 | 56 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | |
| 124 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 124 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 125 | 125 | /** |
| 126 | 126 | * Function to build pdf onto disk |
| 127 | 127 | * |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 137 | 137 | { |
| 138 | - // phpcs:enable |
|
| 138 | + // phpcs:enable |
|
| 139 | 139 | global $user, $langs, $conf, $hookmanager, $mysoc; |
| 140 | 140 | |
| 141 | 141 | if (!is_object($outputlangs)) { |
@@ -652,8 +652,8 @@ discard block |
||
| 652 | 652 | } |
| 653 | 653 | } |
| 654 | 654 | |
| 655 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 656 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 655 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 656 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 657 | 657 | /** |
| 658 | 658 | * Show payments table |
| 659 | 659 | * |
@@ -665,12 +665,12 @@ discard block |
||
| 665 | 665 | */ |
| 666 | 666 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) |
| 667 | 667 | { |
| 668 | - // phpcs:enable |
|
| 668 | + // phpcs:enable |
|
| 669 | 669 | return 1; |
| 670 | 670 | } |
| 671 | 671 | |
| 672 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 673 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 672 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 673 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 674 | 674 | /** |
| 675 | 675 | * Show miscellaneous information (payment mode, payment term, ...) |
| 676 | 676 | * |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | */ |
| 683 | 683 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
| 684 | 684 | { |
| 685 | - // phpcs:enable |
|
| 685 | + // phpcs:enable |
|
| 686 | 686 | global $conf, $mysoc; |
| 687 | 687 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 688 | 688 | |
@@ -732,8 +732,8 @@ discard block |
||
| 732 | 732 | return $posy; |
| 733 | 733 | } |
| 734 | 734 | |
| 735 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 736 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 735 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 736 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 737 | 737 | /** |
| 738 | 738 | * Show total to pay |
| 739 | 739 | * |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | */ |
| 747 | 747 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
| 748 | 748 | { |
| 749 | - // phpcs:enable |
|
| 749 | + // phpcs:enable |
|
| 750 | 750 | global $conf, $mysoc; |
| 751 | 751 | |
| 752 | 752 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | return ($tab2_top + ($tab2_hl * $index)); |
| 938 | 938 | } |
| 939 | 939 | |
| 940 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 940 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 941 | 941 | /** |
| 942 | 942 | * Show table for lines |
| 943 | 943 | * |
@@ -1012,7 +1012,7 @@ discard block |
||
| 1012 | 1012 | } |
| 1013 | 1013 | } |
| 1014 | 1014 | |
| 1015 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1015 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1016 | 1016 | /** |
| 1017 | 1017 | * Show top header of page. |
| 1018 | 1018 | * |
@@ -1307,7 +1307,7 @@ discard block |
||
| 1307 | 1307 | return $top_shift; |
| 1308 | 1308 | } |
| 1309 | 1309 | |
| 1310 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1310 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1311 | 1311 | /** |
| 1312 | 1312 | * Show footer of page. Need this->emetteur object |
| 1313 | 1313 | * |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $this->db = $db; |
| 91 | 91 | $this->name = "vinci"; |
| 92 | 92 | $this->description = $langs->trans('DocumentModelStandardPDF'); |
| 93 | - $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template |
|
| 93 | + $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template |
|
| 94 | 94 | |
| 95 | 95 | // Page size for A4 format |
| 96 | 96 | $this->type = 'pdf'; |
@@ -519,7 +519,7 @@ discard block |
||
| 519 | 519 | if ($this->getColumnStatus('desc')) { |
| 520 | 520 | $pdf->startTransaction(); //description |
| 521 | 521 | $des = $prod -> description; |
| 522 | - $descr = $des;//implode("<br>", $des); |
|
| 522 | + $descr = $des; //implode("<br>", $des); |
|
| 523 | 523 | |
| 524 | 524 | $this->printStdColumnContent($pdf, $curY, 'desc', $descr); |
| 525 | 525 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | abstract class ModelePDFProductBatch extends CommonDocGenerator |
| 43 | 43 | { |
| 44 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 44 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 45 | 45 | /** |
| 46 | 46 | * Return list of active generation modules |
| 47 | 47 | * |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 53 | 53 | { |
| 54 | - // phpcs:enable |
|
| 54 | + // phpcs:enable |
|
| 55 | 55 | $type = 'product_batch'; |
| 56 | 56 | $list = array(); |
| 57 | 57 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | |
| 81 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 81 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 82 | 82 | /** |
| 83 | 83 | * This is the main function that returns the array of emails |
| 84 | 84 | * |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | global $conf; |
| 91 | 91 | |
| 92 | - // phpcs:enable |
|
| 92 | + // phpcs:enable |
|
| 93 | 93 | $key = GETPOSTINT('filter'); |
| 94 | 94 | |
| 95 | 95 | $cibles = array(); |