Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.1406 |
Changes | 0 |
1 | <?php |
||
22 | 1 | public function manualMapping($result) |
|
23 | { |
||
24 | 1 | foreach ($result as $txId => $trade) { |
|
25 | 1 | if (!isset($trade["closing"])) { |
|
26 | $trade["closing"] = null; |
||
27 | } |
||
28 | |||
29 | 1 | $this->trades[] = new TradeModel($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], |
|
30 | 1 | $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], |
|
31 | 1 | $trade["misc"], $trade["closing"]); |
|
32 | 1 | } |
|
45 |