Further adjusting codestyle

This commit is contained in:
Patrick Henninger
2019-01-14 17:56:43 +01:00
parent 0521280040
commit d6c7226e35

View File

@@ -22,15 +22,15 @@ trait CanBeBought
*/ */
public function getBuyableDescription($options = null) public function getBuyableDescription($options = null)
{ {
if(property_exists($this, 'name')) { if (property_exists($this, 'name')) {
return $this->name; return $this->name;
} }
if(property_exists($this, 'title')) { if (property_exists($this, 'title')) {
return $this->title; return $this->title;
} }
if(property_exists($this, 'description')) { if (property_exists($this, 'description')) {
return $this->description; return $this->description;
} }
} }
@@ -42,7 +42,7 @@ trait CanBeBought
*/ */
public function getBuyablePrice($options = null) public function getBuyablePrice($options = null)
{ {
if(property_exists($this, 'price')) { if (property_exists($this, 'price')) {
return $this->price; return $this->price;
} }
} }
@@ -54,10 +54,11 @@ trait CanBeBought
*/ */
public function getBuyableWeight($options = null) public function getBuyableWeight($options = null)
{ {
if(property_exists($this, 'weight')) { if (property_exists($this, 'weight')) {
return $this->weight; return $this->weight;
} }
return 0; return 0;
} }
} }