From d6c7226e350e567d20bea74669f09ba0d60f218e Mon Sep 17 00:00:00 2001 From: Patrick Henninger Date: Mon, 14 Jan 2019 17:56:43 +0100 Subject: [PATCH] Further adjusting codestyle --- src/CanBeBought.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/CanBeBought.php b/src/CanBeBought.php index ae365a8..424461f 100644 --- a/src/CanBeBought.php +++ b/src/CanBeBought.php @@ -22,15 +22,15 @@ trait CanBeBought */ public function getBuyableDescription($options = null) { - if(property_exists($this, 'name')) { + if (property_exists($this, 'name')) { return $this->name; } - if(property_exists($this, 'title')) { + if (property_exists($this, 'title')) { return $this->title; } - if(property_exists($this, 'description')) { + if (property_exists($this, 'description')) { return $this->description; } } @@ -42,7 +42,7 @@ trait CanBeBought */ public function getBuyablePrice($options = null) { - if(property_exists($this, 'price')) { + if (property_exists($this, 'price')) { return $this->price; } } @@ -54,10 +54,11 @@ trait CanBeBought */ public function getBuyableWeight($options = null) { - if(property_exists($this, 'weight')) { + if (property_exists($this, 'weight')) { return $this->weight; } return 0; } + } \ No newline at end of file