@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | |
| 117 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 117 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 118 | 118 | /** |
| 119 | 119 | * Fonction generant la rapport sur le disque |
| 120 | 120 | * |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function write_file($_dir, $month, $year, $outputlangs) |
| 128 | 128 | { |
| 129 | - // phpcs:enable |
|
| 129 | + // phpcs:enable |
|
| 130 | 130 | include_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php'; |
| 131 | 131 | |
| 132 | 132 | global $conf, $hookmanager, $langs, $user; |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | return 1; |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 385 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 386 | 386 | /** |
| 387 | 387 | * Show top header of page. |
| 388 | 388 | * |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | */ |
| 395 | 395 | protected function _pagehead(&$pdf, $page, $showaddress, $outputlangs) |
| 396 | 396 | { |
| 397 | - // phpcs:enable |
|
| 397 | + // phpcs:enable |
|
| 398 | 398 | |
| 399 | 399 | // Do not add the BACKGROUND as this is a report |
| 400 | 400 | //pdf_pagehead($pdf,$outputlangs,$this->page_hauteur); |
@@ -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 | * Output body |
| 463 | 463 | * |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | */ |
| 470 | 470 | public function Body(&$pdf, $page, $lines, $outputlangs) |
| 471 | 471 | { |
| 472 | - // phpcs:enable |
|
| 472 | + // phpcs:enable |
|
| 473 | 473 | global $langs, $conf; |
| 474 | 474 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 475 | 475 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | |
| 111 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 111 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 112 | 112 | /** |
| 113 | 113 | * Function to build pdf onto disk |
| 114 | 114 | * |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function write_file(&$object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 124 | 124 | { |
| 125 | - // phpcs:enable |
|
| 125 | + // phpcs:enable |
|
| 126 | 126 | global $user, $conf, $langs, $mysoc, $hookmanager; |
| 127 | 127 | |
| 128 | 128 | $object->fetch_thirdparty(); |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | } |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 402 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 403 | 403 | /** |
| 404 | 404 | * Show table for lines |
| 405 | 405 | * |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | $pdf->Rect(10, $tab_top, 190, $tab_height); |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 443 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 444 | 444 | /** |
| 445 | 445 | * Show footer of page. Need this->emetteur object |
| 446 | 446 | * |
@@ -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 top header of page. |
| 475 | 475 | * |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $this->tabTitleHeight = 5; // default height |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 115 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 116 | 116 | /** |
| 117 | 117 | * Function to build pdf onto disk |
| 118 | 118 | * |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 128 | 128 | { |
| 129 | - // phpcs:enable |
|
| 129 | + // phpcs:enable |
|
| 130 | 130 | global $user, $conf, $langs, $hookmanager; |
| 131 | 131 | |
| 132 | 132 | $object->fetch_thirdparty(); |
@@ -769,8 +769,8 @@ discard block |
||
| 769 | 769 | } |
| 770 | 770 | } |
| 771 | 771 | |
| 772 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 773 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 772 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 773 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 774 | 774 | /** |
| 775 | 775 | * Show total to pay |
| 776 | 776 | * |
@@ -783,7 +783,7 @@ discard block |
||
| 783 | 783 | */ |
| 784 | 784 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
| 785 | 785 | { |
| 786 | - // phpcs:enable |
|
| 786 | + // phpcs:enable |
|
| 787 | 787 | global $conf, $mysoc; |
| 788 | 788 | |
| 789 | 789 | $sign = 1; |
@@ -876,7 +876,7 @@ discard block |
||
| 876 | 876 | return ($tab2_top + ($tab2_hl * $index)); |
| 877 | 877 | } |
| 878 | 878 | |
| 879 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 879 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 880 | 880 | /** |
| 881 | 881 | * Show table for lines |
| 882 | 882 | * |
@@ -929,7 +929,7 @@ discard block |
||
| 929 | 929 | } |
| 930 | 930 | } |
| 931 | 931 | |
| 932 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 932 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 933 | 933 | /** |
| 934 | 934 | * Show top header of page. |
| 935 | 935 | * |
@@ -1194,7 +1194,7 @@ discard block |
||
| 1194 | 1194 | return $top_shift; |
| 1195 | 1195 | } |
| 1196 | 1196 | |
| 1197 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1197 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1198 | 1198 | /** |
| 1199 | 1199 | * Show footer of page. Need this->emetteur object |
| 1200 | 1200 | * |
@@ -838,7 +838,7 @@ |
||
| 838 | 838 | if ($object->volume_units < 50) { |
| 839 | 839 | $totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs); |
| 840 | 840 | } else { |
| 841 | - $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
| 841 | + $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
| 842 | 842 | } |
| 843 | 843 | } |
| 844 | 844 | |
@@ -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, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 160 | 160 | { |
| 161 | - // phpcs:enable |
|
| 161 | + // phpcs:enable |
|
| 162 | 162 | global $user, $conf, $langs, $hookmanager; |
| 163 | 163 | |
| 164 | 164 | $object->fetch_thirdparty(); |
@@ -642,8 +642,8 @@ discard block |
||
| 642 | 642 | } |
| 643 | 643 | } |
| 644 | 644 | |
| 645 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 646 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 645 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 646 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 647 | 647 | /** |
| 648 | 648 | * Show total to pay |
| 649 | 649 | * |
@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | */ |
| 657 | 657 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
| 658 | 658 | { |
| 659 | - // phpcs:enable |
|
| 659 | + // phpcs:enable |
|
| 660 | 660 | global $conf, $mysoc; |
| 661 | 661 | |
| 662 | 662 | $sign = 1; |
@@ -757,7 +757,7 @@ discard block |
||
| 757 | 757 | return ($tab2_top + ($tab2_hl * $index)); |
| 758 | 758 | } |
| 759 | 759 | |
| 760 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 760 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 761 | 761 | /** |
| 762 | 762 | * Show table for lines |
| 763 | 763 | * |
@@ -838,7 +838,7 @@ discard block |
||
| 838 | 838 | } |
| 839 | 839 | } |
| 840 | 840 | |
| 841 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 841 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 842 | 842 | /** |
| 843 | 843 | * Show top header of page. |
| 844 | 844 | * |
@@ -1105,7 +1105,7 @@ discard block |
||
| 1105 | 1105 | return $top_shift; |
| 1106 | 1106 | } |
| 1107 | 1107 | |
| 1108 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1108 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1109 | 1109 | /** |
| 1110 | 1110 | * Show footer of page. Need this->emetteur object |
| 1111 | 1111 | * |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | abstract class ModelePdfExpedition 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 models |
| 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 = 'shipping'; |
| 55 | 55 | $list = array(); |
| 56 | 56 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | abstract class ModelePDFEvaluation extends CommonDocGenerator |
| 41 | 41 | { |
| 42 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 42 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 43 | 43 | /** |
| 44 | 44 | * Return list of active generation modules |
| 45 | 45 | * |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 51 | 51 | { |
| 52 | - // phpcs:enable |
|
| 52 | + // phpcs:enable |
|
| 53 | 53 | $type = 'evaluation'; |
| 54 | 54 | $list = array(); |
| 55 | 55 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 133 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 134 | 134 | /** |
| 135 | 135 | * Function to build pdf onto disk |
| 136 | 136 | * |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 146 | 146 | { |
| 147 | - // phpcs:enable |
|
| 147 | + // phpcs:enable |
|
| 148 | 148 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 149 | 149 | |
| 150 | 150 | if (!is_object($outputlangs)) { |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | $pdf->writeHTMLCell($this->posxskill - $this->posxpiece - 0.8, 3, $this->posxpiece - 1, $curY, $linenumber + 1, 0, 1, 0, 0, 'C'); |
| 516 | 516 | } |
| 517 | 517 | |
| 518 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 518 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 519 | 519 | /** |
| 520 | 520 | * Show top header of page. |
| 521 | 521 | * |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | return 0; |
| 632 | 632 | } |
| 633 | 633 | |
| 634 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 634 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 635 | 635 | /** |
| 636 | 636 | * Show table for lines |
| 637 | 637 | * |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | |
| 708 | 708 | |
| 709 | 709 | |
| 710 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 710 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 711 | 711 | /** |
| 712 | 712 | * Show footer of page. Need this->emetteur object |
| 713 | 713 | * |
@@ -250,7 +250,7 @@ |
||
| 250 | 250 | |
| 251 | 251 | // Show notes |
| 252 | 252 | if (!empty($object->note_public)) { |
| 253 | - $tab_top = 65; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 253 | + $tab_top = 65; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 254 | 254 | |
| 255 | 255 | $pdf->SetFont('', 'B', $default_font_size); |
| 256 | 256 | $pdf->MultiCell(190, 4, $outputlangs->transnoentities("Notes") . ":", 0, 'L', 0, '', 12, $tab_top); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * \brief File containing class for advanced numbering model of Evaluation |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | - require_once DOL_DOCUMENT_ROOT . '/core/modules/hrm/modules_evaluation.php'; |
|
| 30 | + require_once DOL_DOCUMENT_ROOT . '/core/modules/hrm/modules_evaluation.php'; |
|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public $error = ''; |
| 43 | 43 | |
| 44 | 44 | |
| 45 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 45 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 46 | 46 | /** |
| 47 | 47 | * Return list of active generation modules |
| 48 | 48 | * |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 54 | 54 | { |
| 55 | - // phpcs:enable |
|
| 55 | + // phpcs:enable |
|
| 56 | 56 | $type = 'member'; |
| 57 | 57 | $list = array(); |
| 58 | 58 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | function members_card_pdf_create($db, $arrayofmembers, $modele, $outputlangs, $outputdir = '', $template = 'standard', $filename = 'tmp_cards') |
| 81 | 81 | { |
| 82 | - // phpcs:enable |
|
| 82 | + // phpcs:enable |
|
| 83 | 83 | global $conf, $langs; |
| 84 | 84 | $langs->load("members"); |
| 85 | 85 | |