Completed
Branch master (7cd212)
by Oleksandr
07:37
created
src/Concerns/AttachesToUsers.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Treestoneit\ShoppingCart\Concerns;
4 4
 
5
-use Treestoneit\ShoppingCart\Models\Cart as CartModel;
6 5
 use Illuminate\Contracts\Auth\Authenticatable;
6
+use Treestoneit\ShoppingCart\Models\Cart as CartModel;
7 7
 
8 8
 trait AttachesToUsers
9 9
 {
Please login to merge, or discard this patch.
src/Concerns/CalculatesTotals.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Treestoneit\ShoppingCart\Concerns;
4 4
 
5
+use Closure;
6
+use Illuminate\Support\Facades\Config;
5 7
 use Treestoneit\ShoppingCart\Models\CartItem;
6 8
 use Treestoneit\ShoppingCart\Models\CartItemCollection;
7 9
 use Treestoneit\ShoppingCart\Taxable;
8
-use Closure;
9
-use Illuminate\Support\Facades\Config;
10 10
 
11 11
 trait CalculatesTotals
12 12
 {
Please login to merge, or discard this patch.
src/Concerns/ManagesCartItems.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @param  \Treestoneit\ShoppingCart\Buyable  $buyable
28 28
      * @param  int  $quantity
29 29
      * @param  array|null  $options
30
-     * @return \Treestoneit\ShoppingCart\CartManager
30
+     * @return ManagesCartItems
31 31
      */
32 32
     public function add(Buyable $buyable, int $quantity = 1, array $options = []): self
33 33
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @param  int  $item
75 75
      * @param  int  $quantity
76
-     * @return \Treestoneit\ShoppingCart\CartManager
76
+     * @return ManagesCartItems
77 77
      * @throws \Exception
78 78
      */
79 79
     public function update(int $item, int $quantity): self
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param  int  $item
88 88
      * @param  int  $quantity
89
-     * @return \Treestoneit\ShoppingCart\CartManager
89
+     * @return ManagesCartItems
90 90
      * @throws \Exception
91 91
      */
92 92
     public function updateQuantity(int $item, int $quantity): self
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      *
110 110
      * @param  int  $item
111 111
      * @param  array  $options
112
-     * @return \Treestoneit\ShoppingCart\CartManager
112
+     * @return ManagesCartItems
113 113
      */
114 114
     public function updateOptions(int $item, array $options): self
115 115
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param  int  $item
125 125
      * @param  string  $option
126 126
      * @param $value
127
-     * @return \Treestoneit\ShoppingCart\CartManager
127
+     * @return ManagesCartItems
128 128
      */
129 129
     public function updateOption(int $item, string $option, $value): self
130 130
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Treestoneit\ShoppingCart\Concerns;
4 4
 
5
+use Illuminate\Support\Facades\Session;
5 6
 use Treestoneit\ShoppingCart\Buyable;
6 7
 use Treestoneit\ShoppingCart\Models\Cart;
7 8
 use Treestoneit\ShoppingCart\Models\CartItem;
8
-use Illuminate\Support\Facades\Session;
9 9
 
10 10
 trait ManagesCartItems
11 11
 {
Please login to merge, or discard this patch.