Fixing style errors.

This commit is contained in:
stickler-ci 2021-01-12 20:16:34 +00:00
parent ff06798660
commit 14e3be630c

View File

@ -143,7 +143,7 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
/** /**
* Return literal barcode type code from numerical rowid type of barcode * Return literal barcode type code from numerical rowid type of barcode
* *
* @param Database $db Database * @param Database $db Database
* @param int $type Type of barcode (EAN, ISBN, ...) as rowid * @param int $type Type of barcode (EAN, ISBN, ...) as rowid
* @return string * @return string
*/ */
@ -208,7 +208,7 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
$numFinal = get_next_value($db, $mask, 'product', $field, $where, '', $now); $numFinal = get_next_value($db, $mask, 'product', $field, $where, '', $now);
//if EAN13 calculate and substitute the last 13th character (* or ?) used in the mask by the EAN13 key //if EAN13 calculate and substitute the last 13th character (* or ?) used in the mask by the EAN13 key
$literaltype = ''; $literaltype = '';
$literaltype = $this->literalBarcodeType($db,$type);//get literal_Barcode_Type $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type
if ($literaltype=='EAN13') //EAN13 rowid = 2 if ($literaltype=='EAN13') //EAN13 rowid = 2
{ {
if (strlen($numFinal)==13) if (strlen($numFinal)==13)