@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | |
60 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
61 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
60 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
61 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
62 | 62 | /** |
63 | 63 | * Show top header of page. |
64 | 64 | * |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "InvoiceProForma") |
74 | 74 | { |
75 | - // phpcs:enable |
|
75 | + // phpcs:enable |
|
76 | 76 | return parent::_pagehead($pdf, $object, $showaddress, $outputlangs, $outputlangsbis, $titlekey); |
77 | 77 | } |
78 | 78 | } |
@@ -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)) { |
@@ -177,7 +177,7 @@ |
||
177 | 177 | $maxfilesizearray = getMaxFileSizeArray(); |
178 | 178 | $maxmin = $maxfilesizearray['maxmin']; |
179 | 179 | if ($maxmin > 0) { |
180 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
180 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
181 | 181 | } |
182 | 182 | $texte .= ' <input type="file" name="uploadfile">'; |
183 | 183 | $texte .= '<input type="hidden" value="COMMANDE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $this->atleastonediscount = 0; |
163 | 163 | } |
164 | 164 | |
165 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
165 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
166 | 166 | /** |
167 | 167 | * Function to build pdf onto disk |
168 | 168 | * |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
178 | 178 | { |
179 | - // phpcs:enable |
|
179 | + // phpcs:enable |
|
180 | 180 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
181 | 181 | |
182 | 182 | if (!is_object($outputlangs)) { |
@@ -663,8 +663,8 @@ discard block |
||
663 | 663 | } |
664 | 664 | } |
665 | 665 | |
666 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
667 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
666 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
667 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
668 | 668 | /** |
669 | 669 | * Show payments table |
670 | 670 | * |
@@ -676,12 +676,12 @@ discard block |
||
676 | 676 | */ |
677 | 677 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) |
678 | 678 | { |
679 | - // phpcs:enable |
|
679 | + // phpcs:enable |
|
680 | 680 | return 1; |
681 | 681 | } |
682 | 682 | |
683 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
684 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
683 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
684 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
685 | 685 | /** |
686 | 686 | * Show miscellaneous information (payment mode, payment term, ...) |
687 | 687 | * |
@@ -693,7 +693,7 @@ discard block |
||
693 | 693 | */ |
694 | 694 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
695 | 695 | { |
696 | - // phpcs:enable |
|
696 | + // phpcs:enable |
|
697 | 697 | global $conf, $mysoc; |
698 | 698 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
699 | 699 | |
@@ -866,8 +866,8 @@ discard block |
||
866 | 866 | return $posy; |
867 | 867 | } |
868 | 868 | |
869 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
870 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
869 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
870 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
871 | 871 | /** |
872 | 872 | * Show total to pay |
873 | 873 | * |
@@ -881,7 +881,7 @@ discard block |
||
881 | 881 | */ |
882 | 882 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $outputlangsbis = null) |
883 | 883 | { |
884 | - // phpcs:enable |
|
884 | + // phpcs:enable |
|
885 | 885 | global $conf, $mysoc, $hookmanager; |
886 | 886 | |
887 | 887 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -1142,7 +1142,7 @@ discard block |
||
1142 | 1142 | return ($tab2_top + ($tab2_hl * $index)); |
1143 | 1143 | } |
1144 | 1144 | |
1145 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1145 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1146 | 1146 | /** |
1147 | 1147 | * Show table for lines |
1148 | 1148 | * |
@@ -1247,8 +1247,8 @@ discard block |
||
1247 | 1247 | } |
1248 | 1248 | } |
1249 | 1249 | |
1250 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1251 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1250 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1251 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1252 | 1252 | /** |
1253 | 1253 | * Show top header of page. |
1254 | 1254 | * |
@@ -1262,7 +1262,7 @@ discard block |
||
1262 | 1262 | */ |
1263 | 1263 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "PdfOrderTitle") |
1264 | 1264 | { |
1265 | - // phpcs:enable |
|
1265 | + // phpcs:enable |
|
1266 | 1266 | global $conf, $langs, $hookmanager; |
1267 | 1267 | |
1268 | 1268 | $ltrdirection = 'L'; |
@@ -1514,8 +1514,8 @@ discard block |
||
1514 | 1514 | return $top_shift; |
1515 | 1515 | } |
1516 | 1516 | |
1517 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1518 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1517 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1518 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1519 | 1519 | /** |
1520 | 1520 | * Show footer of page. Need this->emetteur object |
1521 | 1521 | * |
@@ -1527,7 +1527,7 @@ discard block |
||
1527 | 1527 | */ |
1528 | 1528 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
1529 | 1529 | { |
1530 | - // phpcs:enable |
|
1530 | + // phpcs:enable |
|
1531 | 1531 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
1532 | 1532 | return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark); |
1533 | 1533 | } |
@@ -1682,7 +1682,7 @@ |
||
1682 | 1682 | |
1683 | 1683 | $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs); |
1684 | 1684 | |
1685 | - $mode = 'target'; |
|
1685 | + $mode = 'target'; |
|
1686 | 1686 | $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object); |
1687 | 1687 | |
1688 | 1688 | // Show recipient |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $this->atleastonediscount = 0; |
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, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
165 | 165 | |
166 | 166 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -1352,7 +1352,7 @@ discard block |
||
1352 | 1352 | return ($tab2_top + ($tab2_hl * $index)); |
1353 | 1353 | } |
1354 | 1354 | |
1355 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1355 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1356 | 1356 | /** |
1357 | 1357 | * Show table for lines |
1358 | 1358 | * |
@@ -1413,8 +1413,8 @@ discard block |
||
1413 | 1413 | } |
1414 | 1414 | } |
1415 | 1415 | |
1416 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1417 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1416 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1417 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1418 | 1418 | /** |
1419 | 1419 | * Show top header of page. |
1420 | 1420 | * |
@@ -1428,7 +1428,7 @@ discard block |
||
1428 | 1428 | */ |
1429 | 1429 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "PdfOrderTitle") |
1430 | 1430 | { |
1431 | - // phpcs:enable |
|
1431 | + // phpcs:enable |
|
1432 | 1432 | global $conf, $langs, $hookmanager, $mysoc; |
1433 | 1433 | |
1434 | 1434 | $ltrdirection = 'L'; |
@@ -1700,8 +1700,8 @@ discard block |
||
1700 | 1700 | return $top_shift; |
1701 | 1701 | } |
1702 | 1702 | |
1703 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1704 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1703 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1704 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1705 | 1705 | /** |
1706 | 1706 | * Show footer of page. Need this->emetteur object |
1707 | 1707 | * |
@@ -1713,7 +1713,7 @@ discard block |
||
1713 | 1713 | */ |
1714 | 1714 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
1715 | 1715 | { |
1716 | - // phpcs:enable |
|
1716 | + // phpcs:enable |
|
1717 | 1717 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
1718 | 1718 | return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark); |
1719 | 1719 | } |
@@ -1656,7 +1656,7 @@ |
||
1656 | 1656 | $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs); |
1657 | 1657 | } |
1658 | 1658 | |
1659 | - $mode = 'target'; |
|
1659 | + $mode = 'target'; |
|
1660 | 1660 | $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object); |
1661 | 1661 | |
1662 | 1662 | // Show recipient |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public $atleastonediscount = 0; |
60 | 60 | |
61 | 61 | |
62 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
62 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
63 | 63 | /** |
64 | 64 | * Return list of active generation modules |
65 | 65 | * |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public static function liste_modeles($db, $maxfilenamelength = 0) |
71 | 71 | { |
72 | - // phpcs:enable |
|
72 | + // phpcs:enable |
|
73 | 73 | $type = 'order'; |
74 | 74 | $list = array(); |
75 | 75 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | abstract class ModelePDFSuppliersPayments extends CommonDocGenerator |
28 | 28 | { |
29 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
29 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
30 | 30 | /** |
31 | 31 | * Return list of active generation models |
32 | 32 | * |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public static function liste_modeles($db, $maxfilenamelength = 0) |
38 | 38 | { |
39 | - // phpcs:enable |
|
39 | + // phpcs:enable |
|
40 | 40 | $type = 'supplier_payment'; |
41 | 41 | $list = array(); |
42 | 42 |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | |
147 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
147 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
148 | 148 | /** |
149 | 149 | * Function to build pdf onto disk |
150 | 150 | * |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
160 | 160 | { |
161 | - // phpcs:enable |
|
161 | + // phpcs:enable |
|
162 | 162 | global $user, $langs, $conf, $mysoc, $hookmanager; |
163 | 163 | |
164 | 164 | if (!is_object($outputlangs)) { |
@@ -481,8 +481,8 @@ discard block |
||
481 | 481 | } |
482 | 482 | } |
483 | 483 | |
484 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
485 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
484 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
485 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
486 | 486 | /** |
487 | 487 | * Show total to pay |
488 | 488 | * |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | */ |
495 | 495 | protected function _tableau_cheque(&$pdf, $object, $posy, $outputlangs) |
496 | 496 | { |
497 | - // phpcs:enable |
|
497 | + // phpcs:enable |
|
498 | 498 | global $conf, $mysoc; |
499 | 499 | |
500 | 500 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | return $posy; |
545 | 545 | } |
546 | 546 | |
547 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
547 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
548 | 548 | /** |
549 | 549 | * Show table for lines |
550 | 550 | * |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | //$this->printRect($pdf,$this->marge_gauche, $tab_top, $this->page_largeur-$this->marge_gauche-$this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect takes a length in 3rd parameter and 4th parameter |
592 | 592 | } |
593 | 593 | |
594 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
594 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
595 | 595 | /** |
596 | 596 | * Show top header of page. |
597 | 597 | * |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | return 0; |
808 | 808 | } |
809 | 809 | |
810 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
810 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
811 | 811 | /** |
812 | 812 | * Show footer of page. Need this->emetteur object |
813 | 813 | * |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $this->db = $db; |
96 | 96 | $this->name = "standard"; |
97 | 97 | $this->description = $langs->trans('DocumentModelStandardPDF'); |
98 | - $this->update_main_doc_field = 0; // Save the name of generated file as the main doc when generating a doc with this template |
|
98 | + $this->update_main_doc_field = 0; // Save the name of generated file as the main doc when generating a doc with this template |
|
99 | 99 | |
100 | 100 | // Page size for A4 format |
101 | 101 | $this->type = 'pdf'; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | } |
274 | 274 | |
275 | 275 | |
276 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
276 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
277 | 277 | /** |
278 | 278 | * Return if a code is used (by other element) |
279 | 279 | * |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | */ |
285 | 285 | public function verif_dispo($db, $code, $thirdparty) |
286 | 286 | { |
287 | - // phpcs:enable |
|
287 | + // phpcs:enable |
|
288 | 288 | $sql = "SELECT barcode FROM " . MAIN_DB_PREFIX . "societe"; |
289 | 289 | $sql .= " WHERE barcode = '" . $db->escape($code) . "'"; |
290 | 290 | if ($thirdparty->id > 0) { |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | } |
304 | 304 | } |
305 | 305 | |
306 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
306 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
307 | 307 | /** |
308 | 308 | * Return if a barcode value match syntax |
309 | 309 | * |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | */ |
314 | 314 | public function verif_syntax($codefortest, $typefortest) |
315 | 315 | { |
316 | - // phpcs:enable |
|
316 | + // phpcs:enable |
|
317 | 317 | global $conf; |
318 | 318 | |
319 | 319 | $result = 0; |
@@ -206,7 +206,7 @@ |
||
206 | 206 | //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last character (* or ?) used in the mask by the key |
207 | 207 | if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...) |
208 | 208 | $literaltype = ''; |
209 | - $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type |
|
209 | + $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type |
|
210 | 210 | switch ($literaltype) { |
211 | 211 | case 'EAN13': //EAN13 rowid = 2 |
212 | 212 | if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13 |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | } |
270 | 270 | |
271 | 271 | |
272 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
272 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
273 | 273 | /** |
274 | 274 | * Return if a code is used (by other element) |
275 | 275 | * |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | */ |
281 | 281 | public function verif_dispo($db, $code, $product) |
282 | 282 | { |
283 | - // phpcs:enable |
|
283 | + // phpcs:enable |
|
284 | 284 | $sql = "SELECT barcode FROM " . MAIN_DB_PREFIX . "product"; |
285 | 285 | $sql .= " WHERE barcode = '" . $db->escape($code) . "'"; |
286 | 286 | $sql .= " AND entity IN (" . getEntity('product') . ")"; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | } |
302 | 302 | } |
303 | 303 | |
304 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
304 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
305 | 305 | /** |
306 | 306 | * Return if a barcode value match syntax |
307 | 307 | * |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | */ |
312 | 312 | public function verif_syntax($codefortest, $typefortest) |
313 | 313 | { |
314 | - // phpcs:enable |
|
314 | + // phpcs:enable |
|
315 | 315 | global $conf; |
316 | 316 | |
317 | 317 | $result = 0; |
@@ -206,7 +206,7 @@ |
||
206 | 206 | //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last character (* or ?) used in the mask by the key |
207 | 207 | if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...) |
208 | 208 | $literaltype = ''; |
209 | - $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type |
|
209 | + $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type |
|
210 | 210 | switch ($literaltype) { |
211 | 211 | case 'EAN13': //EAN13 rowid = 2 |
212 | 212 | if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13 |