From 6358f32997907fbe2b943b41de5f9653b036064a Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sat, 22 Dec 2018 17:54:13 +0300 Subject: [PATCH] syntax fix --- app/Traits/Currencies.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Traits/Currencies.php b/app/Traits/Currencies.php index cfdb785d8..6e8bbe69b 100644 --- a/app/Traits/Currencies.php +++ b/app/Traits/Currencies.php @@ -62,21 +62,21 @@ trait Currencies public function getConvertedAmount($format = false, $with_tax = true) { - $amount = $with_tax ? $this->amount : isset($this->amount_without_tax) ? $this->amount_without_tax : $this->amount; + $amount = $with_tax ? $this->amount : (isset($this->amount_without_tax) ? $this->amount_without_tax : $this->amount); return $this->convert($amount, $this->currency_code, $this->currency_rate, $format); } public function getReverseConvertedAmount($format = false, $with_tax = true) { - $amount = $with_tax ? $this->amount : isset($this->amount_without_tax) ? $this->amount_without_tax : $this->amount; + $amount = $with_tax ? $this->amount : (isset($this->amount_without_tax) ? $this->amount_without_tax : $this->amount); return $this->reverseConvert($amount, $this->currency_code, $this->currency_rate, $format); } public function getDynamicConvertedAmount($format = false, $with_tax = true) { - $amount = $with_tax ? $this->amount : isset($this->amount_without_tax) ? $this->amount_without_tax : $this->amount; + $amount = $with_tax ? $this->amount : (isset($this->amount_without_tax) ? $this->amount_without_tax : $this->amount); return $this->dynamicConvert($this->default_currency_code, $amount, $this->currency_code, $this->currency_rate, $format); }