Code Duplication    Length = 10-10 lines in 2 locations

src/Cart.php 1 location

@@ 15-24 (lines=10) @@
12
	 /**
13
     * @param string $data
14
     */
15
    private function getCartData($data)
16
    {
17
        $cart = substr($data, 0, strpos($data, ','));
18
        $cust = substr($data, strpos($data, ',') + 1);
19
20
        Analog::log("Cart & customer variables: $data");
21
        $otherCarts = $this->processFindCarts($cart, $cust);
22
23
        return $otherCarts;
24
    }
25
26
    /**
27
     * @param string $cart

src/Prestashop.php 1 location

@@ 102-111 (lines=10) @@
99
    /**
100
     * @param string $data
101
     */
102
    private function getCartData($data)
103
    {
104
        $cart = substr($data, 0, strpos($data, ','));
105
        $cust = substr($data, strpos($data, ',') + 1);
106
107
        Analog::log("Cart & customer variables: $data");
108
        $otherCarts = $this->processFindCarts($cart, $cust);
109
110
        return $otherCarts;
111
    }
112
113
    /**
114
     * @param string $cart