@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | class modDataPolicy extends DolibarrModules |
40 | 40 | { |
41 | - // @codingStandardsIgnoreEnd |
|
41 | + // @codingStandardsIgnoreEnd |
|
42 | 42 | /** |
43 | 43 | * Constructor. Define names, constants, directories, boxes, permissions |
44 | 44 | * |
@@ -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 | * |
@@ -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 |
@@ -161,8 +161,8 @@ |
||
161 | 161 | } |
162 | 162 | |
163 | 163 | $sql = array( |
164 | - "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'donation' AND entity = " . ((int) $conf->entity), |
|
165 | - "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','donation'," . ((int) $conf->entity) . ")", |
|
164 | + "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'donation' AND entity = " . ((int) $conf->entity), |
|
165 | + "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','donation'," . ((int) $conf->entity) . ")", |
|
166 | 166 | ); |
167 | 167 | |
168 | 168 | return $this->_init($sql, $options); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | return $texte; |
191 | 191 | } |
192 | 192 | |
193 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
193 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
194 | 194 | /** |
195 | 195 | * Function to build a document on disk using the generic odt module. |
196 | 196 | * |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
206 | 206 | { |
207 | - // phpcs:enable |
|
207 | + // phpcs:enable |
|
208 | 208 | global $stock, $langs, $conf, $mysoc, $hookmanager, $user; |
209 | 209 | |
210 | 210 | if (empty($srctemplatepath)) { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | |
122 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
122 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
123 | 123 | /** |
124 | 124 | * Function to build a document on disk using the generic odt module. |
125 | 125 | * |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
135 | 135 | { |
136 | - // phpcs:enable |
|
136 | + // phpcs:enable |
|
137 | 137 | global $user, $langs, $conf, $mysoc, $db, $hookmanager; |
138 | 138 | |
139 | 139 | if (!is_object($outputlangs)) { |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | } |
573 | 573 | } |
574 | 574 | |
575 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
575 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
576 | 576 | /** |
577 | 577 | * Show table for lines |
578 | 578 | * |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | } |
680 | 680 | } |
681 | 681 | |
682 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
682 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
683 | 683 | /** |
684 | 684 | * Show top header of page. |
685 | 685 | * |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | return $top_shift; |
834 | 834 | } |
835 | 835 | |
836 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
836 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
837 | 837 | /** |
838 | 838 | * Show footer of page. Need this->emetteur object |
839 | 839 | * |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public $version = 'dolibarr'; |
51 | 51 | |
52 | 52 | |
53 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
53 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
54 | 54 | /** |
55 | 55 | * Return list of active generation modules |
56 | 56 | * |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public static function liste_modeles($db, $maxfilenamelength = 0) |
62 | 62 | { |
63 | - // phpcs:enable |
|
63 | + // phpcs:enable |
|
64 | 64 | $type = 'stock'; |
65 | 65 | $list = array(); |
66 | 66 |
@@ -1383,12 +1383,12 @@ |
||
1383 | 1383 | } |
1384 | 1384 | } |
1385 | 1385 | |
1386 | - // phpcs:disable |
|
1387 | - // Complete the arrays &$tabname,&$tablib,&$tabsql,&$tabsqlsort,&$tabfield,&$tabfieldvalue,&$tabfieldinsert,&$tabrowid,&$tabcond |
|
1388 | - if (empty($objMod->dictionaries) && !empty($objMod->{"dictionnaries"})) { |
|
1389 | - $objMod->dictionaries = $objMod->{"dictionnaries"}; // For backward compatibility |
|
1390 | - } |
|
1391 | - // phpcs:enable |
|
1386 | + // phpcs:disable |
|
1387 | + // Complete the arrays &$tabname,&$tablib,&$tabsql,&$tabsqlsort,&$tabfield,&$tabfieldvalue,&$tabfieldinsert,&$tabrowid,&$tabcond |
|
1388 | + if (empty($objMod->dictionaries) && !empty($objMod->{"dictionnaries"})) { |
|
1389 | + $objMod->dictionaries = $objMod->{"dictionnaries"}; // For backward compatibility |
|
1390 | + } |
|
1391 | + // phpcs:enable |
|
1392 | 1392 | |
1393 | 1393 | if (!empty($objMod->dictionaries)) { |
1394 | 1394 | //var_dump($objMod->dictionaries['tabname']); |
@@ -118,13 +118,13 @@ |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * Return array head with list of tabs to view object information |
|
122 | - * |
|
123 | - * @param BonPrelevement $object Member |
|
124 | - * @param int $nbOfInvoices No of invoices |
|
125 | - * @param int $nbOfSalaryInvoice No of salary invoices |
|
126 | - * @return array head |
|
127 | - */ |
|
121 | + * Return array head with list of tabs to view object information |
|
122 | + * |
|
123 | + * @param BonPrelevement $object Member |
|
124 | + * @param int $nbOfInvoices No of invoices |
|
125 | + * @param int $nbOfSalaryInvoice No of salary invoices |
|
126 | + * @return array head |
|
127 | + */ |
|
128 | 128 | function bon_prelevement_prepare_head(BonPrelevement $object, $nbOfInvoices, $nbOfSalaryInvoice) |
129 | 129 | { |
130 | 130 | global $langs, $conf; |