@@ -471,7 +471,7 @@ |
||
| 471 | 471 | /** |
| 472 | 472 | * Gets the total amount discounted |
| 473 | 473 | * |
| 474 | - * @param bool|true $format |
|
| 474 | + * @param boolean $format |
|
| 475 | 475 | * |
| 476 | 476 | * @return int|string |
| 477 | 477 | */ |
@@ -417,7 +417,7 @@ |
||
| 417 | 417 | |
| 418 | 418 | if ($this->count() != 0) { |
| 419 | 419 | foreach ($this->getItems() as $item) { |
| 420 | - if($discounted >= $totalDiscount) { |
|
| 420 | + if ($discounted >= $totalDiscount) { |
|
| 421 | 421 | $totalTax += $item->tax(); |
| 422 | 422 | } else { |
| 423 | 423 | $discounted += $item->price(false); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $this->price = floatval($price); |
| 44 | 44 | $this->tax = config('laracart.tax'); |
| 45 | 45 | |
| 46 | - foreach($options as $option => $value) { |
|
| 46 | + foreach ($options as $option => $value) { |
|
| 47 | 47 | $this->$option = $value; |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | { |
| 206 | 206 | $tax = 0; |
| 207 | 207 | |
| 208 | - if($this->taxable) { |
|
| 208 | + if ($this->taxable) { |
|
| 209 | 209 | return $this->tax * $this->price; |
| 210 | 210 | } |
| 211 | 211 | |