Completed
Push — master ( e53f9d...53f387 )
by James
02:25
created
src/Cart.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      *
202 202
      * @param  string $rowId
203 203
      *
204
-     * @return array|null
204
+     * @return CartItem
205 205
      */
206 206
     public function getItem($rowId)
207 207
     {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     /**
277 277
      * Return the price including tax.
278 278
      *
279
-     * @return integer
279
+     * @return double
280 280
      */
281 281
     public function getTotalPrice()
282 282
     {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     /**
293 293
      * Return the price excluding tax.
294 294
      *
295
-     * @return integer
295
+     * @return double
296 296
      */
297 297
     public function getTotalPriceExcludingTax()
298 298
     {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     /**
309 309
      * Return the carts total tax.
310 310
      *
311
-     * @return integer
311
+     * @return double
312 312
      */
313 313
     public function getTotalTax()
314 314
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 namespace jamesdb\Cart;
4 4
 
5
+use League\Event\Emitter;
6
+use SebastianBergmann\Money\Currency;
7
+use SebastianBergmann\Money\Money;
5 8
 use jamesdb\Cart\CartItem;
6 9
 use jamesdb\Cart\Event as CartEvent;
7 10
 use jamesdb\Cart\Exception as CartException;
8 11
 use jamesdb\Cart\Identifier\IdentifierInterface;
9 12
 use jamesdb\Cart\Storage\StorageInterface;
10
-use League\Event\Emitter;
11
-use SebastianBergmann\Money\Currency;
12
-use SebastianBergmann\Money\Money;
13 13
 
14 14
 class Cart
15 15
 {
Please login to merge, or discard this patch.
src/CartItem.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Return the item tex.
119 119
      *
120
-     * @return SebastianBergmann\Money\Money
120
+     * @return Money
121 121
      */
122 122
     public function getTax(Currency $currency)
123 123
     {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      *
168 168
      * @param  string $offset
169 169
      *
170
-     * @return mixed
170
+     * @return boolean
171 171
      */
172 172
     public function offsetExists($offset)
173 173
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace jamesdb\Cart;
4 4
 
5 5
 use ArrayAccess;
6
-use jamesdb\Cart\Exception\CartPropertyNotIntegerException;
7 6
 use SebastianBergmann\Money\Currency;
8 7
 use SebastianBergmann\Money\Money;
8
+use jamesdb\Cart\Exception\CartPropertyNotIntegerException;
9 9
 
10 10
 class CartItem implements ArrayAccess
11 11
 {
Please login to merge, or discard this patch.