Fixing style errors.

This commit is contained in:
stickler-ci 2020-09-04 10:10:37 +00:00
parent b841a4354e
commit 8d6c19a432
2 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ class ProductAttribute extends CommonObject
* @var string * @var string
*/ */
public $ref; public $ref;
/** /**
* External ref of the product attribute * External ref of the product attribute
* @var string * @var string
@ -86,7 +86,7 @@ class ProductAttribute extends CommonObject
} }
$sql = "SELECT rowid, ref, ref_ext, label, rang FROM ".MAIN_DB_PREFIX."product_attribute WHERE rowid = ".(int) $id." AND entity IN (".getEntity('product').")"; $sql = "SELECT rowid, ref, ref_ext, label, rang FROM ".MAIN_DB_PREFIX."product_attribute WHERE rowid = ".(int) $id." AND entity IN (".getEntity('product').")";
$query = $this->db->query($sql); $query = $this->db->query($sql);
if (!$this->db->num_rows($query)) { if (!$this->db->num_rows($query)) {
@ -157,7 +157,7 @@ class ProductAttribute extends CommonObject
$sql = "INSERT INTO ".MAIN_DB_PREFIX."product_attribute (ref, ref_ext, label, entity, rang) $sql = "INSERT INTO ".MAIN_DB_PREFIX."product_attribute (ref, ref_ext, label, entity, rang)
VALUES ('".$this->db->escape($this->ref)."', '".$this->db->escape($this->ref_ext)."', '".$this->db->escape($this->label)."', ".(int) $this->entity.", ".(int) $this->rang.")"; VALUES ('".$this->db->escape($this->ref)."', '".$this->db->escape($this->ref_ext)."', '".$this->db->escape($this->label)."', ".(int) $this->entity.", ".(int) $this->rang.")";
$query = $this->db->query($sql); $query = $this->db->query($sql);
if ($query) if ($query)
{ {
@ -192,7 +192,7 @@ class ProductAttribute extends CommonObject
$this->label = trim($this->label); $this->label = trim($this->label);
$sql = "UPDATE ".MAIN_DB_PREFIX."product_attribute SET ref = '".$this->db->escape($this->ref)."', ref_ext = '".$this->db->escape($this->ref_ext)."', label = '".$this->db->escape($this->label)."', rang = ".(int) $this->rang." WHERE rowid = ".(int) $this->id; $sql = "UPDATE ".MAIN_DB_PREFIX."product_attribute SET ref = '".$this->db->escape($this->ref)."', ref_ext = '".$this->db->escape($this->ref_ext)."', label = '".$this->db->escape($this->label)."', rang = ".(int) $this->rang." WHERE rowid = ".(int) $this->id;
if ($this->db->query($sql)) { if ($this->db->query($sql)) {
return 1; return 1;
} }

View File

@ -76,7 +76,7 @@ class ProductCombination
* @var ProductCombinationLevel[] * @var ProductCombinationLevel[]
*/ */
public $combination_price_levels; public $combination_price_levels;
/** /**
* External ref * External ref
* @var string * @var string