@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } |
147 | 147 | } |
148 | 148 | |
149 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
149 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
150 | 150 | /** |
151 | 151 | * Function to build pdf onto disk |
152 | 152 | * |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
162 | 162 | { |
163 | - // phpcs:enable |
|
163 | + // phpcs:enable |
|
164 | 164 | global $user, $conf, $langs, $hookmanager; |
165 | 165 | |
166 | 166 | $object->fetch_thirdparty(); |
@@ -695,8 +695,8 @@ discard block |
||
695 | 695 | } |
696 | 696 | } |
697 | 697 | |
698 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
699 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
698 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
699 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
700 | 700 | /** |
701 | 701 | * Show total to pay |
702 | 702 | * |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | */ |
710 | 710 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
711 | 711 | { |
712 | - // phpcs:enable |
|
712 | + // phpcs:enable |
|
713 | 713 | global $conf, $mysoc; |
714 | 714 | |
715 | 715 | $sign = 1; |
@@ -811,7 +811,7 @@ discard block |
||
811 | 811 | return ($tab2_top + ($tab2_hl * $index)); |
812 | 812 | } |
813 | 813 | |
814 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
814 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
815 | 815 | /** |
816 | 816 | * Show table for lines |
817 | 817 | * |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | */ |
827 | 827 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
828 | 828 | { |
829 | - // phpcs:enable |
|
829 | + // phpcs:enable |
|
830 | 830 | global $conf; |
831 | 831 | |
832 | 832 | // Force to disable hidetop and hidebottom |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | } |
895 | 895 | } |
896 | 896 | |
897 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
897 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
898 | 898 | /** |
899 | 899 | * Show top header of page. |
900 | 900 | * |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | */ |
907 | 907 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
908 | 908 | { |
909 | - // phpcs:enable |
|
909 | + // phpcs:enable |
|
910 | 910 | global $conf, $langs, $mysoc; |
911 | 911 | |
912 | 912 | $langs->load("orders"); |
@@ -1145,7 +1145,7 @@ discard block |
||
1145 | 1145 | return $top_shift; |
1146 | 1146 | } |
1147 | 1147 | |
1148 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1148 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1149 | 1149 | /** |
1150 | 1150 | * Show footer of page. Need this->emetteur object |
1151 | 1151 | * |
@@ -325,7 +325,7 @@ |
||
325 | 325 | $pdf->MultiCell(0, 3, ''); // Set interline to 3 |
326 | 326 | $pdf->SetTextColor(0, 0, 0); |
327 | 327 | |
328 | - $tab_top = 90; // position of top tab |
|
328 | + $tab_top = 90; // position of top tab |
|
329 | 329 | $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10); |
330 | 330 | |
331 | 331 | $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext; |
@@ -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 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * \brief File containing class for advanced numbering model of Evaluation |
29 | 29 | */ |
30 | 30 | |
31 | - require_once constant('DOL_DOCUMENT_ROOT') . '/core/modules/hrm/modules_evaluation.php'; |
|
31 | + require_once constant('DOL_DOCUMENT_ROOT') . '/core/modules/hrm/modules_evaluation.php'; |
|
32 | 32 | |
33 | 33 | |
34 | 34 | /** |
@@ -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 | * |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | |
193 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
193 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
194 | 194 | /** |
195 | 195 | * Indicates if the code is available or not (by another third party) |
196 | 196 | * |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function verif_dispo($db, $code, $soc, $type = 0) |
204 | 204 | { |
205 | - // phpcs:enable |
|
205 | + // phpcs:enable |
|
206 | 206 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe"; |
207 | 207 | if ($type == 1) { |
208 | 208 | $sql .= " WHERE code_fournisseur = '" . $db->escape($code) . "'"; |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | |
231 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
231 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
232 | 232 | /** |
233 | 233 | * Renvoi si un code respecte la syntax |
234 | 234 | * |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function verif_syntax($code) |
239 | 239 | { |
240 | - // phpcs:enable |
|
240 | + // phpcs:enable |
|
241 | 241 | $res = 0; |
242 | 242 | |
243 | 243 | if (dol_strlen($code) < 11) { |
@@ -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 |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $maxfilesizearray = getMaxFileSizeArray(); |
169 | 169 | $maxmin = $maxfilesizearray['maxmin']; |
170 | 170 | if ($maxmin > 0) { |
171 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
171 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
172 | 172 | } |
173 | 173 | $texte .= ' <input type="file" name="uploadfile">'; |
174 | 174 | $texte .= '<input type="hidden" value="COMPANY_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $newfileformat = substr($newfile, strrpos($newfile, '.') + 1); |
248 | 248 | if (getDolGlobalString('MAIN_DOC_USE_OBJECT_THIRDPARTY_NAME')) { |
249 | 249 | $newfiletmp = dol_sanitizeFileName(dol_string_nospecial($object->name)) . '-' . $newfiletmp; |
250 | - $newfiletmp = preg_replace('/__+/', '_', $newfiletmp); // Replace repeated _ into one _ (to avoid string with substitution syntax) |
|
250 | + $newfiletmp = preg_replace('/__+/', '_', $newfiletmp); // Replace repeated _ into one _ (to avoid string with substitution syntax) |
|
251 | 251 | } |
252 | 252 | if (getDolGlobalString('MAIN_DOC_USE_TIMING')) { |
253 | 253 | $format = getDolGlobalString('MAIN_DOC_USE_TIMING'); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | return $s; |
186 | 186 | } |
187 | 187 | |
188 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
188 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
189 | 189 | /** |
190 | 190 | * Set accountancy account code for a third party into this->code |
191 | 191 | * |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function get_code($db, $societe, $type = '') |
198 | 198 | { |
199 | - // phpcs:enable |
|
199 | + // phpcs:enable |
|
200 | 200 | global $conf; |
201 | 201 | $i = 0; |
202 | 202 | $this->code = ''; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | |
225 | 225 | |
226 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
226 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
227 | 227 | /** |
228 | 228 | * Check if mask/numbering use prefix |
229 | 229 | * |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | public function verif_prefixIsUsed() |
233 | 233 | { |
234 | - // phpcs:enable |
|
234 | + // phpcs:enable |
|
235 | 235 | global $conf; |
236 | 236 | |
237 | 237 | $mask = getDolGlobalString('COMPANY_ELEPHANT_MASK_CUSTOMER'); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | } |
307 | 307 | |
308 | 308 | |
309 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
309 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
310 | 310 | /** |
311 | 311 | * Indicate if the code is available or not (by another third party) |
312 | 312 | * |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | public function verif_dispo($db, $code, $soc, $type = 0) |
320 | 320 | { |
321 | - // phpcs:enable |
|
321 | + // phpcs:enable |
|
322 | 322 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe"; |
323 | 323 | if ($type == 1) { |
324 | 324 | $sql .= " WHERE code_fournisseur = '" . $db->escape($code) . "'"; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | return ''; |
85 | 85 | } |
86 | 86 | |
87 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
87 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
88 | 88 | /** |
89 | 89 | * Set accountancy account code for a third party into this->code |
90 | 90 | * |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function get_code($db, $societe, $type = '') |
97 | 97 | { |
98 | - // phpcs:enable |
|
98 | + // phpcs:enable |
|
99 | 99 | $this->code = ''; |
100 | 100 | |
101 | 101 | if (is_object($societe)) { |