@@ -26,7 +26,7 @@ |
||
26 | 26 | * \brief Page to edit absolute discounts for a customer |
27 | 27 | */ |
28 | 28 | |
29 | -if (! defined('CSRFCHECK_WITH_TOKEN')) { |
|
29 | +if (!defined('CSRFCHECK_WITH_TOKEN')) { |
|
30 | 30 | define('CSRFCHECK_WITH_TOKEN', '1'); |
31 | 31 | } // Force use of CSRF protection with tokens even for GET |
32 | 32 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | // Parameters |
69 | 69 | $action = GETPOST('action', 'aZ09'); |
70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
72 | 72 | |
73 | 73 | $value = GETPOST('value', 'alpha'); |
74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -39,13 +39,13 @@ |
||
39 | 39 | // Get parameters |
40 | 40 | $id = GETPOSTINT('id'); |
41 | 41 | $ref = GETPOST('ref', 'alpha'); |
42 | -$lineid = GETPOSTINT('lineid'); |
|
42 | +$lineid = GETPOSTINT('lineid'); |
|
43 | 43 | |
44 | 44 | $action = GETPOST('action', 'aZ09'); |
45 | 45 | $confirm = GETPOST('confirm', 'alpha'); |
46 | 46 | $cancel = GETPOST('cancel', 'aZ09'); |
47 | 47 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search |
48 | -$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
48 | +$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
49 | 49 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
50 | 50 | $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha'); |
51 | 51 | $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09'); |
@@ -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 |
@@ -189,7 +189,7 @@ |
||
189 | 189 | $maxfilesizearray = getMaxFileSizeArray(); |
190 | 190 | $maxmin = $maxfilesizearray['maxmin']; |
191 | 191 | if ($maxmin > 0) { |
192 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
192 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
193 | 193 | } |
194 | 194 | $texte .= ' <input type="file" name="uploadfile">'; |
195 | 195 | $texte .= '<input type="hidden" value="MYMODULE_MYOBJECT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -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 |
@@ -75,8 +75,8 @@ |
||
75 | 75 | |
76 | 76 | // Author |
77 | 77 | $this->editor_name = 'Editor name'; |
78 | - $this->editor_url = 'https://www.example.com'; // Must be an external online web site |
|
79 | - $this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@mymodule' |
|
78 | + $this->editor_url = 'https://www.example.com'; // Must be an external online web site |
|
79 | + $this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@mymodule' |
|
80 | 80 | |
81 | 81 | // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z' |
82 | 82 | $this->version = '1.0'; |
@@ -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); |