@@ -39,13 +39,13 @@ |
||
39 | 39 | $this->setTime($data['time']); |
40 | 40 | |
41 | 41 | if (!empty($data['bids'])) { |
42 | - array_map(function ($bid) use ($bids) { |
|
42 | + array_map(function($bid) use ($bids) { |
|
43 | 43 | $bids->push(ResponseDtoBuilder::make(OrderBookPriceItemResponse::class, $bid)); |
44 | 44 | }, $data['bids']); |
45 | 45 | } |
46 | 46 | |
47 | 47 | if (!empty($data['asks'])) { |
48 | - array_map(function ($ask) use ($asks) { |
|
48 | + array_map(function($ask) use ($asks) { |
|
49 | 49 | $asks->push(ResponseDtoBuilder::make(OrderBookPriceItemResponse::class, $ask)); |
50 | 50 | }, $data['asks']); |
51 | 51 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function setInterval(string $interval): self |
94 | 94 | { |
95 | - $this->interval = StringHelper::clearInterval($interval) . "m"; |
|
95 | + $this->interval = StringHelper::clearInterval($interval)."m"; |
|
96 | 96 | return $this; |
97 | 97 | } |
98 | 98 |
@@ -38,14 +38,14 @@ |
||
38 | 38 | |
39 | 39 | $bids = new EntityCollection(); |
40 | 40 | if (!empty($data['bids'])) { |
41 | - array_map(function ($bid) use ($bids) { |
|
41 | + array_map(function($bid) use ($bids) { |
|
42 | 42 | $bids->push(ResponseDtoBuilder::make(OrderBookPriceItemResponse::class, $bid)); |
43 | 43 | }, $data['bids']); |
44 | 44 | } |
45 | 45 | |
46 | 46 | $asks = new EntityCollection(); |
47 | 47 | if (!empty($data['asks'])) { |
48 | - array_map(function ($ask) use ($asks) { |
|
48 | + array_map(function($ask) use ($asks) { |
|
49 | 49 | $asks->push(ResponseDtoBuilder::make(OrderBookPriceItemResponse::class, $ask)); |
50 | 50 | }, $data['asks']); |
51 | 51 | } |
@@ -66,10 +66,10 @@ |
||
66 | 66 | $this |
67 | 67 | ->setId($data['id']) |
68 | 68 | ->setLtCode($data['ltCode']) |
69 | - ->setOrderAmount((float) $data['orderAmount']) |
|
70 | - ->setOrderQuantity((float) $data['orderQuantity']) |
|
71 | - ->setOrderStatus((int) $data['orderStatus']) |
|
72 | - ->setQuantity((float) $data['quantity']) |
|
69 | + ->setOrderAmount((float)$data['orderAmount']) |
|
70 | + ->setOrderQuantity((float)$data['orderQuantity']) |
|
71 | + ->setOrderStatus((int)$data['orderStatus']) |
|
72 | + ->setQuantity((float)$data['quantity']) |
|
73 | 73 | ->setSerialNo($data['serialNo']) |
74 | 74 | ->setTimestamp($data['timestamp']) |
75 | 75 | ->setValueCoin($data['valueCoin']); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | $list = new EntityCollection(); |
16 | 16 | |
17 | 17 | if (!empty($data['list'])) { |
18 | - array_map(function ($item) use ($list) { |
|
18 | + array_map(function($item) use ($list) { |
|
19 | 19 | $list->push(ResponseDtoBuilder::make(OrderHistoryResponseItem::class, $item)); |
20 | 20 | }, $data['list']); |
21 | 21 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function __construct(array $data) |
13 | 13 | { |
14 | - $this->success = (bool) $data['success']; |
|
14 | + $this->success = (bool)$data['success']; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -15,7 +15,7 @@ |
||
15 | 15 | $list = new EntityCollection(); |
16 | 16 | |
17 | 17 | if (!empty($data['list'])) { |
18 | - array_map(function ($item) use ($list) { |
|
18 | + array_map(function($item) use ($list) { |
|
19 | 19 | $list->push(ResponseDtoBuilder::make(TradeHistoryResponseItem::class, $item)); |
20 | 20 | }, $data['list']); |
21 | 21 | } |
@@ -130,7 +130,7 @@ |
||
130 | 130 | $idsList[] = $orderInfo->getOrderId(); |
131 | 131 | } |
132 | 132 | |
133 | - $fakeId = rand(0,100); |
|
133 | + $fakeId = rand(0, 100); |
|
134 | 134 | $idsList[] = $fakeId; |
135 | 135 | |
136 | 136 | $params = (new BatchCancelOrderByIdRequest())->setOrderIds(implode(',', $idsList)); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $list = new EntityCollection(); |
22 | 22 | |
23 | 23 | if (!empty($data['list'])) { |
24 | - array_map(function ($item) use ($list) { |
|
24 | + array_map(function($item) use ($list) { |
|
25 | 25 | $list->push(ResponseDtoBuilder::make(BatchCancelOrderByIdResponseItem::class, $item)); |
26 | 26 | }, $data['list']); |
27 | 27 | } |