@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | abstract class ModelePDFContract 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 = 'contract'; |
| 54 | 54 | $list = array(); |
| 55 | 55 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public $version = 'dolibarr'; |
| 54 | 54 | |
| 55 | 55 | |
| 56 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 56 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 57 | 57 | /** |
| 58 | 58 | * Return list of active generation modules |
| 59 | 59 | * |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 65 | 65 | { |
| 66 | - // phpcs:enable |
|
| 66 | + // phpcs:enable |
|
| 67 | 67 | $type = 'movement'; |
| 68 | 68 | $list = array(); |
| 69 | 69 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | |
| 126 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 126 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 127 | 127 | /** |
| 128 | 128 | * Function to build a document on disk using the generic odt module. |
| 129 | 129 | * |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 139 | 139 | { |
| 140 | - // phpcs:enable |
|
| 140 | + // phpcs:enable |
|
| 141 | 141 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 142 | 142 | |
| 143 | 143 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -775,7 +775,7 @@ discard block |
||
| 775 | 775 | } |
| 776 | 776 | } |
| 777 | 777 | |
| 778 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 778 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 779 | 779 | /** |
| 780 | 780 | * Show table for lines |
| 781 | 781 | * |
@@ -899,7 +899,7 @@ discard block |
||
| 899 | 899 | $pdf->SetLineStyle(array('dash' => 0)); |
| 900 | 900 | } |
| 901 | 901 | |
| 902 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 902 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 903 | 903 | /** |
| 904 | 904 | * Show top header of page. |
| 905 | 905 | * |
@@ -1122,7 +1122,7 @@ discard block |
||
| 1122 | 1122 | return $top_shift; |
| 1123 | 1123 | } |
| 1124 | 1124 | |
| 1125 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1125 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1126 | 1126 | /** |
| 1127 | 1127 | * Show footer of page. Need this->emetteur object |
| 1128 | 1128 | * |
@@ -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 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | abstract class ModelePDFTicket extends CommonDocGenerator |
| 37 | 37 | { |
| 38 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 38 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 39 | 39 | /** |
| 40 | 40 | * Return list of active generation modules |
| 41 | 41 | * |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 47 | 47 | { |
| 48 | - // phpcs:enable |
|
| 48 | + // phpcs:enable |
|
| 49 | 49 | $type = 'ticket'; |
| 50 | 50 | $list = array(); |
| 51 | 51 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | return $texte; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 184 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 185 | 185 | /** |
| 186 | 186 | * Function to build a document on disk using the generic odt module. |
| 187 | 187 | * |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | */ |
| 196 | 196 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 197 | 197 | { |
| 198 | - // phpcs:enable |
|
| 198 | + // phpcs:enable |
|
| 199 | 199 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 200 | 200 | |
| 201 | 201 | if (empty($srctemplatepath)) { |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | return -1; |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 410 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 411 | 411 | /** |
| 412 | 412 | * get substitution array for object |
| 413 | 413 | * |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | */ |
| 419 | 419 | public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object') |
| 420 | 420 | { |
| 421 | - // phpcs:enable |
|
| 421 | + // phpcs:enable |
|
| 422 | 422 | if (!$object instanceof User) { |
| 423 | 423 | dol_syslog("Expected Ticket object, got " . gettype($object), LOG_ERR); |
| 424 | 424 | return array(); |
@@ -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 | * |
@@ -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 | |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |