Code Duplication    Length = 3-3 lines in 2 locations

src/Model/Trades/TradesResponse.php 1 location

@@ 24-26 (lines=3) @@
21
     */
22
    public function manualMapping($result)
23
    {
24
        foreach ($result as $txId => $trade) {
25
            $this->trades[] = new Trade($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], $trade["misc"], $trade["closing"]);
26
        }
27
    }
28
29
    /**

src/Model/TradesHistory/TradesHistoryResponse.php 1 location

@@ 29-31 (lines=3) @@
26
    public function manualMapping($result)
27
    {
28
        $this->count = $result["count"];
29
        foreach ($result["trades"] as $trade) {
30
            $this->trades[] = new Trade($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], $trade["misc"], $trade["closing"]);
31
        }
32
    }
33
34
    /**