Completed
Pull Request — master (#72)
by Luke
02:48
created
src/LaraCart.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -471,7 +471,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -417,7 +417,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/CartItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.