@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $list = new EntityCollection(); |
| 17 | 17 | |
| 18 | 18 | if (!empty($data['list'])) { |
| 19 | - array_map(function ($item) use ($list) { |
|
| 19 | + array_map(function($item) use ($list) { |
|
| 20 | 20 | $list->push(ResponseDtoBuilder::make(PurchaseRedeemHistoryResponseItem::class, $item)); |
| 21 | 21 | }, $data['list']); |
| 22 | 22 | } |
@@ -65,10 +65,10 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $this->timestamp = DateTimeHelper::makeFromTimestamp($data['timestamp']); |
| 67 | 67 | $this->id = $data['id']; |
| 68 | - $this->amount = (float) $data['amount']; |
|
| 68 | + $this->amount = (float)$data['amount']; |
|
| 69 | 69 | $this->ltCode = $data['ltCode']; |
| 70 | - $this->orderAmount = (float) $data['orderAmount']; |
|
| 71 | - $this->orderQuantity = (float) $data['orderQuantity']; |
|
| 70 | + $this->orderAmount = (float)$data['orderAmount']; |
|
| 71 | + $this->orderQuantity = (float)$data['orderQuantity']; |
|
| 72 | 72 | $this->orderStatus = $data['orderStatus']; |
| 73 | 73 | $this->serialNo = $data['serialNo']; |
| 74 | 74 | $this->valueCoin = $data['valueCoin']; |
@@ -45,10 +45,10 @@ |
||
| 45 | 45 | |
| 46 | 46 | public function __construct(array $data) |
| 47 | 47 | { |
| 48 | - $this->basket = (float) $data['basket']; |
|
| 49 | - $this->leverage = (float) $data['leverage']; |
|
| 50 | - $this->nav = (float) $data['nav']; |
|
| 51 | - $this->circulation = (float) $data['circulation']; |
|
| 48 | + $this->basket = (float)$data['basket']; |
|
| 49 | + $this->leverage = (float)$data['leverage']; |
|
| 50 | + $this->nav = (float)$data['nav']; |
|
| 51 | + $this->circulation = (float)$data['circulation']; |
|
| 52 | 52 | $this->navTime = DateTimeHelper::makeFromTimestamp($data['navTime']); |
| 53 | 53 | $this->ltCode = $data['ltCode']; |
| 54 | 54 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $list = new EntityCollection(); |
| 19 | 19 | |
| 20 | 20 | if (!empty($data['list'])) { |
| 21 | - array_map(function ($item) use ($list) { |
|
| 21 | + array_map(function($item) use ($list) { |
|
| 22 | 22 | $list->push(ResponseDtoBuilder::make(AllAssetInfoResponseItem::class, $item)); |
| 23 | 23 | }, $data['list']); |
| 24 | 24 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $balance = new EntityCollection(); |
| 18 | 18 | |
| 19 | 19 | if (!empty($data['balances'])) { |
| 20 | - array_map(function ($item) use ($balance) { |
|
| 20 | + array_map(function($item) use ($balance) { |
|
| 21 | 21 | $balance->push(ResponseDtoBuilder::make(WalletBalanceResponseItem::class, $item)); |
| 22 | 22 | }, $data['balances']); |
| 23 | 23 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $list = new EntityCollection(); |
| 17 | 17 | |
| 18 | 18 | if (!empty($data['list'])) { |
| 19 | - array_map(function ($item) use ($list) { |
|
| 19 | + array_map(function($item) use ($list) { |
|
| 20 | 20 | $list->push(ResponseDtoBuilder::make(PublicTradingRecordsResponseItem::class, $item)); |
| 21 | 21 | }, $data['list']); |
| 22 | 22 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $list = new EntityCollection(); |
| 19 | 19 | |
| 20 | 20 | if (!empty($data['list'])) { |
| 21 | - array_map(function ($item) use ($list) { |
|
| 21 | + array_map(function($item) use ($list) { |
|
| 22 | 22 | $list->push(ResponseDtoBuilder::make(KlineResponseItem::class, $item)); |
| 23 | 23 | }, $data['list']); |
| 24 | 24 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $list = new EntityCollection(); |
| 17 | 17 | |
| 18 | 18 | if (!empty($data['list'])) { |
| 19 | - array_map(function ($item) use ($list) { |
|
| 19 | + array_map(function($item) use ($list) { |
|
| 20 | 20 | $list->push(ResponseDtoBuilder::make(InstrumentInfoResponseItem::class, $item)); |
| 21 | 21 | }, $data['list']); |
| 22 | 22 | } |