@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | return $texte; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 209 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 210 | 210 | /** |
| 211 | 211 | * Function to build a document on disk using the generic odt module. |
| 212 | 212 | * |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | */ |
| 221 | 221 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 222 | 222 | { |
| 223 | - // phpcs:enable |
|
| 223 | + // phpcs:enable |
|
| 224 | 224 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 225 | 225 | global $action; |
| 226 | 226 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | |
| 152 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 152 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 153 | 153 | /** |
| 154 | 154 | * Function to build pdf onto disk |
| 155 | 155 | * |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 165 | 165 | { |
| 166 | - // phpcs:enable |
|
| 166 | + // phpcs:enable |
|
| 167 | 167 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 168 | 168 | |
| 169 | 169 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -824,7 +824,7 @@ discard block |
||
| 824 | 824 | } |
| 825 | 825 | } |
| 826 | 826 | |
| 827 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 827 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 828 | 828 | /** |
| 829 | 829 | * Return list of active generation modules |
| 830 | 830 | * |
@@ -834,11 +834,11 @@ discard block |
||
| 834 | 834 | */ |
| 835 | 835 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 836 | 836 | { |
| 837 | - // phpcs:enable |
|
| 837 | + // phpcs:enable |
|
| 838 | 838 | return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub |
| 839 | 839 | } |
| 840 | 840 | |
| 841 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 841 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 842 | 842 | /** |
| 843 | 843 | * Show table for lines |
| 844 | 844 | * |
@@ -899,7 +899,7 @@ discard block |
||
| 899 | 899 | } |
| 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 | * |
@@ -912,7 +912,7 @@ discard block |
||
| 912 | 912 | */ |
| 913 | 913 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null) |
| 914 | 914 | { |
| 915 | - // phpcs:enable |
|
| 915 | + // phpcs:enable |
|
| 916 | 916 | global $conf, $langs; |
| 917 | 917 | |
| 918 | 918 | $ltrdirection = 'L'; |
@@ -1163,7 +1163,7 @@ discard block |
||
| 1163 | 1163 | return $top_shift; |
| 1164 | 1164 | } |
| 1165 | 1165 | |
| 1166 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1166 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1167 | 1167 | /** |
| 1168 | 1168 | * Show footer of page. Need this->emetteur object |
| 1169 | 1169 | * |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | abstract class ModelePDFMyObject 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 = 'myobject'; |
| 53 | 53 | $list = array(); |
| 54 | 54 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | |
| 93 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 93 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 94 | 94 | /** |
| 95 | 95 | * This is the main function that returns the array of emails |
| 96 | 96 | * |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function add_to_target($mailing_id) |
| 101 | 101 | { |
| 102 | - // phpcs:enable |
|
| 102 | + // phpcs:enable |
|
| 103 | 103 | $target = array(); |
| 104 | 104 | $j = 0; |
| 105 | 105 | |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | |
| 344 | 344 | |
| 345 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 345 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 346 | 346 | /** |
| 347 | 347 | * Clean sensible object datas |
| 348 | 348 | * |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | protected function _cleanObjectDatas($object) |
| 353 | 353 | { |
| 354 | - // phpcs:enable |
|
| 354 | + // phpcs:enable |
|
| 355 | 355 | $object = parent::_cleanObjectDatas($object); |
| 356 | 356 | |
| 357 | 357 | unset($object->rowid); |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | return $this->LibStatut($this->status, $mode); |
| 980 | 980 | } |
| 981 | 981 | |
| 982 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 982 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 983 | 983 | /** |
| 984 | 984 | * Return the label of a given status |
| 985 | 985 | * |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | */ |
| 990 | 990 | public function LibStatut($status, $mode = 0) |
| 991 | 991 | { |
| 992 | - // phpcs:enable |
|
| 992 | + // phpcs:enable |
|
| 993 | 993 | if (is_null($status)) { |
| 994 | 994 | return ''; |
| 995 | 995 | } |
@@ -1152,7 +1152,7 @@ discard block |
||
| 1152 | 1152 | } |
| 1153 | 1153 | |
| 1154 | 1154 | |
| 1155 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1155 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1156 | 1156 | /** |
| 1157 | 1157 | * Run a job. |
| 1158 | 1158 | * Once job is finished, status and nb of run is updated. |
@@ -1163,7 +1163,7 @@ discard block |
||
| 1163 | 1163 | */ |
| 1164 | 1164 | public function run_jobs(string $userlogin) |
| 1165 | 1165 | { |
| 1166 | - // phpcs:enable |
|
| 1166 | + // phpcs:enable |
|
| 1167 | 1167 | global $langs, $conf, $hookmanager; |
| 1168 | 1168 | |
| 1169 | 1169 | $hookmanager->initHooks(array('cron')); |
@@ -1442,7 +1442,7 @@ discard block |
||
| 1442 | 1442 | } |
| 1443 | 1443 | |
| 1444 | 1444 | |
| 1445 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1445 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1446 | 1446 | /** |
| 1447 | 1447 | * Reprogram a job |
| 1448 | 1448 | * |
@@ -1452,7 +1452,7 @@ discard block |
||
| 1452 | 1452 | */ |
| 1453 | 1453 | public function reprogram_jobs(string $userlogin, int $now) |
| 1454 | 1454 | { |
| 1455 | - // phpcs:enable |
|
| 1455 | + // phpcs:enable |
|
| 1456 | 1456 | dol_syslog(get_class($this) . "::reprogram_jobs userlogin:$userlogin", LOG_DEBUG); |
| 1457 | 1457 | |
| 1458 | 1458 | require_once constant('DOL_DOCUMENT_ROOT') . '/user/class/user.class.php'; |
@@ -1533,7 +1533,7 @@ discard block |
||
| 1533 | 1533 | return $this->LibStatut($this->status, $mode, $this->processing, $this->lastresult); |
| 1534 | 1534 | } |
| 1535 | 1535 | |
| 1536 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1536 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1537 | 1537 | /** |
| 1538 | 1538 | * Return label of a giver status |
| 1539 | 1539 | * |
@@ -1545,7 +1545,7 @@ discard block |
||
| 1545 | 1545 | */ |
| 1546 | 1546 | public function LibStatut(int $status, int $mode = 0, int $processing = 0, string $lastResult = '') |
| 1547 | 1547 | { |
| 1548 | - // phpcs:enable |
|
| 1548 | + // phpcs:enable |
|
| 1549 | 1549 | $this->labelStatus = array(); // Force reset o array because label depends on other fields |
| 1550 | 1550 | $this->labelStatusShort = array(); |
| 1551 | 1551 | |
@@ -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("agenda"); |
@@ -837,7 +837,7 @@ discard block |
||
| 837 | 837 | return $this->LibStatut($this->status, $mode); |
| 838 | 838 | } |
| 839 | 839 | |
| 840 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 840 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 841 | 841 | /** |
| 842 | 842 | * Return the label of a given status |
| 843 | 843 | * |
@@ -847,7 +847,7 @@ discard block |
||
| 847 | 847 | */ |
| 848 | 848 | public function LibStatut($status, $mode = 0) |
| 849 | 849 | { |
| 850 | - // phpcs:enable |
|
| 850 | + // phpcs:enable |
|
| 851 | 851 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 852 | 852 | global $langs; |
| 853 | 853 | |