diff --git a/readme.md b/readme.md
index 5261256..514f9e5 100644
--- a/readme.md
+++ b/readme.md
@@ -1,10 +1,9 @@
## LaraCart - Laravel Shopping Cart Package (http://laracart.lukepolo.com)
-[![Build Status](https://travis-ci.org/lukepolo/laracart.svg?branch=master)](https://travis-ci.org/lukepolo/laracart)
-[![Latest Stable Version](https://poser.pugx.org/lukepolo/laracart/v/stable)](https://packagist.org/packages/lukepolo/laracart)
-[![Test Coverage](https://codeclimate.com/github/lukepolo/laracart/badges/coverage.svg)](https://codeclimate.com/github/lukepolo/laracart/coverage)
-[![Total Downloads](https://poser.pugx.org/lukepolo/laracart/downloads)](https://packagist.org/packages/lukepolo/laracart) [![License](https://poser.pugx.org/lukepolo/laracart/license)](https://packagist.org/packages/lukepolo/laracart)
+
+[![Build Status](https://travis-ci.org/lukepolo/laracart.svg?branch=master)](https://travis-ci.org/lukepolo/laracart) [![Latest Stable Version](https://poser.pugx.org/lukepolo/laracart/v/stable)](https://packagist.org/packages/lukepolo/laracart) [![Test Coverage](https://codeclimate.com/github/lukepolo/laracart/badges/coverage.svg)](https://codeclimate.com/github/lukepolo/laracart/coverage) [![Total Downloads](https://poser.pugx.org/lukepolo/laracart/downloads)](https://packagist.org/packages/lukepolo/laracart) [![License](https://poser.pugx.org/lukepolo/laracart/license)](https://packagist.org/packages/lukepolo/laracart)
## Features
+
* Coupons
* Session Based System
* Cross Device Support
@@ -15,26 +14,24 @@
* Endless item chaining for complex systems
* Totals of all items within the item chains
* Item Model Relation at a global and item level
-* Quickly insert items with your own item models
+* Quickly insert items with your own item models
## Laravel compatibility
- Laravel | laracart
-:---------|:----------
- 5.x | .* - 1.1.*
- 5.4+ | 1.3.*
-
-
+| Laravel | laracart |
+| :------ | :--------- |
+| 5.x | ._ - 1.1._ |
+| 5.4+ | 1.3.\* |
## Installation
Install the package through [Composer](http://getcomposer.org/). Edit your project's `composer.json` file by adding:
{
- "require": {
- ........,
- "lukepolo/laracart": "1.3.*"
- }
+ "require": {
+ ........,
+ "lukepolo/laracart": "1.3.*"
+ }
}
If using 5.4 you will need to include the service providers / facade in `app/config/app.php`:
@@ -52,16 +49,17 @@ Include the Facade :
Copy over the configuration file by running the command:
```
- php artisan vendor:publish --provider='LukePOLO\LaraCart\LaraCartServiceProvider'
+ php artisan vendor:publish --provider='LukePOLO\LaraCart\LaraCartServiceProvider'
```
### Documentation
+
http://laracart.lukepolo.com
-To Contribute to documentation use this repo :
+To Contribute to documentation use this repo :
https://github.com/lukepolo/laracart-docs
-License
-----
+## License
+
MIT
diff --git a/src/LaraCart.php b/src/LaraCart.php
index a4bd263..458bcf4 100644
--- a/src/LaraCart.php
+++ b/src/LaraCart.php
@@ -570,8 +570,8 @@ public function taxTotal($format = true, $withFees = true, $grossTaxes = true)
$discounted = 0;
$tempTotalDiscount = $totalDiscount = $this->totalDiscount(false, false);
- if(config('laracart.discountsAlreadyTaxed')) {
- $totalDiscount = 0;
+ if (config('laracart.discountsAlreadyTaxed')) {
+ $totalDiscount = 0;
}
if ($this->count() != 0) {