Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class OrdersInfoResponse implements ResponseInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var OrderModel[] |
||
18 | */ |
||
19 | private $orders; |
||
20 | |||
21 | /** |
||
22 | * @param array $result |
||
23 | */ |
||
24 | public function manualMapping($result) |
||
25 | { |
||
26 | foreach ($result as $txid => $orderData) { |
||
27 | $this->orders[] = new OrderModel( |
||
28 | $txid, |
||
29 | isset($orderData["closetm"]) ? $orderData["closetm"] : null, |
||
30 | $orderData["cost"], |
||
31 | new OrderTypeModel( |
||
32 | $orderData["descr"]["leverage"], |
||
33 | $orderData["descr"]["order"], |
||
34 | $orderData["descr"]["ordertype"], |
||
35 | $orderData["descr"]["pair"], |
||
36 | $orderData["descr"]["price"], |
||
37 | $orderData["descr"]["price2"], |
||
38 | $orderData["descr"]["type"] |
||
39 | ), |
||
40 | $orderData["expiretm"], |
||
41 | $orderData["fee"], |
||
42 | $orderData["misc"], |
||
43 | $orderData["oflags"], |
||
44 | $orderData["opentm"], |
||
45 | $orderData["price"], |
||
46 | isset($orderData["reason"]) ? $orderData["reason"] : null, |
||
47 | $orderData["refid"], |
||
48 | $orderData["starttm"], |
||
49 | $orderData["status"], |
||
50 | $orderData["userref"], |
||
51 | $orderData["vol"], |
||
52 | $orderData["vol_exec"] |
||
53 | ); |
||
54 | } |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return OrderModel[] |
||
59 | */ |
||
60 | public function getOrders() |
||
63 | } |
||
64 | } |
||
65 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths