@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $list = new EntityCollection(); |
| 28 | 28 | |
| 29 | 29 | if (!empty($data['list'])) { |
| 30 | - array_map(function ($item) use ($list) { |
|
| 30 | + array_map(function($item) use ($list) { |
|
| 31 | 31 | $list->push(ResponseDtoBuilder::make(MyPositionResponseItem::class, $item)); |
| 32 | 32 | }, $data['list']); |
| 33 | 33 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $list = new EntityCollection(); |
| 21 | 21 | |
| 22 | 22 | if (!empty($data['list'])) { |
| 23 | - array_map(function ($item) use ($list) { |
|
| 23 | + array_map(function($item) use ($list) { |
|
| 24 | 24 | $list->push(ResponseDtoBuilder::make(FundingRateHistoryResponseItem::class, $item)); |
| 25 | 25 | }, $data['list']); |
| 26 | 26 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $list = new EntityCollection(); |
| 20 | 20 | |
| 21 | 21 | if (!empty($data['list'])) { |
| 22 | - array_map(function ($item) use ($list) { |
|
| 22 | + array_map(function($item) use ($list) { |
|
| 23 | 23 | $list->push(ResponseDtoBuilder::make(IndexPriceKlineResponseItem::class, $item)); |
| 24 | 24 | }, $data['list']); |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $list = new EntityCollection(); |
| 20 | 20 | |
| 21 | 21 | if (!empty($data['list'])) { |
| 22 | - array_map(function ($item) use ($list) { |
|
| 22 | + array_map(function($item) use ($list) { |
|
| 23 | 23 | $list->push(ResponseDtoBuilder::make(TickerInfoResponseItem::class, $item)); |
| 24 | 24 | }, $data['list']); |
| 25 | 25 | } |
@@ -160,9 +160,9 @@ discard block |
||
| 160 | 160 | $this->volume24h = $data['volume24h']; |
| 161 | 161 | $this->fundingRate = $data['fundingRate']; |
| 162 | 162 | $this->nextFundingTime = DateTimeHelper::makeFromTimestamp((int) $data['nextFundingTime']); |
| 163 | - $this->predictedDeliveryPrice = (float)$data['predictedDeliveryPrice']; |
|
| 164 | - $this->basisRate = (float)$data['basisRate']; |
|
| 165 | - $this->deliveryFeeRate = (float)$data['deliveryFeeRate']; |
|
| 163 | + $this->predictedDeliveryPrice = (float) $data['predictedDeliveryPrice']; |
|
| 164 | + $this->basisRate = (float) $data['basisRate']; |
|
| 165 | + $this->deliveryFeeRate = (float) $data['deliveryFeeRate']; |
|
| 166 | 166 | $this->deliveryTime = DateTimeHelper::makeFromTimestamp((int) $data['deliveryTime']); |
| 167 | 167 | $this->openInterestValue = $data['openInterestValue']; |
| 168 | 168 | } |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | */ |
| 269 | 269 | public function getOpenInterests(): float |
| 270 | 270 | { |
| 271 | - return (float)$this->openInterests; |
|
| 271 | + return (float) $this->openInterests; |
|
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | /** |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $list = new EntityCollection(); |
| 18 | 18 | |
| 19 | 19 | if (!empty($data['list'])) { |
| 20 | - array_map(function ($item) use ($list) { |
|
| 20 | + array_map(function($item) use ($list) { |
|
| 21 | 21 | $list->push(ResponseDtoBuilder::make(PublicTradingHistoryResponseItem::class, $item)); |
| 22 | 22 | }, $data['list']); |
| 23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $list = new EntityCollection(); |
| 18 | 18 | |
| 19 | 19 | if (!empty($data['list'])) { |
| 20 | - array_map(function ($item) use ($list) { |
|
| 20 | + array_map(function($item) use ($list) { |
|
| 21 | 21 | $list->push(ResponseDtoBuilder::make(MarkPriceKlineResponseItem::class, $item)); |
| 22 | 22 | }, $data['list']); |
| 23 | 23 | } |
@@ -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(OpenInterestResponseItem::class, $item)); |
| 20 | 20 | }, $data['list']); |
| 21 | 21 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $list = new EntityCollection(); |
| 20 | 20 | |
| 21 | 21 | if (!empty($data['list'])) { |
| 22 | - array_map(function ($item) use ($list) { |
|
| 22 | + array_map(function($item) use ($list) { |
|
| 23 | 23 | $list->push(ResponseDtoBuilder::make(KlineResponseItem::class, $item)); |
| 24 | 24 | }, $data['list']); |
| 25 | 25 | } |