CartCoupon::remove()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
/**
4
 * @file
5
 *          Magento API Client (SOAP v1).
6
 *          Allows wrappers for each call, dependencies injections
7
 *          and code completion.
8
 *
9
 * @author  Sébastien MALOT <[email protected]>
10
 * @license MIT
11
 * @url     <https://github.com/smalot/magento-client>
12
 *
13
 * For the full copyright and license information, please view the LICENSE
14
 * file that was distributed with this source code.
15
 */
16
17
namespace Smalot\Magento\Cart;
18
19
use Smalot\Magento\ActionInterface;
20
use Smalot\Magento\MagentoModuleAbstract;
21
22
/**
23
 * Class CartCoupon
24
 *
25
 * @package Smalot\Magento\Cart
26
 */
27
class CartCoupon extends MagentoModuleAbstract
28
{
29
    /**
30
     * Allows you to add a coupon code for a shopping cart (quote).
31
     * The shopping cart must not be empty.
32
     *
33
     * @param int    $quoteId
34
     * @param string $couponCode
35
     * @param string $store
36
     *
37
     * @return ActionInterface
38
     */
39
    public function add($quoteId, $couponCode, $store = null)
0 ignored issues
show
Unused Code introduced by
The parameter $quoteId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $couponCode is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $store is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
40
    {
41
        return $this->__createAction('cart_coupon.add', func_get_args());
42
    }
43
44
    /**
45
     * Allows you to remove a coupon code from a shopping cart (quote).
46
     *
47
     * @param int    $quoteId
48
     * @param string $store
49
     *
50
     * @return ActionInterface
51
     */
52
    public function remove($quoteId, $store = null)
0 ignored issues
show
Unused Code introduced by
The parameter $quoteId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $store is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
53
    {
54
        return $this->__createAction('cart_coupon.remove', func_get_args());
55
    }
56
}
57