@@ -252,13 +252,13 @@ discard block |
||
| 252 | 252 | $this->assertInstanceOf(\DateTime::class, $dto->getTime()); |
| 253 | 253 | |
| 254 | 254 | /** @var MergedOrderBookPriceItemResponse $bid */ |
| 255 | - while(!empty($bid = $dto->getBids()->fetch())) { |
|
| 255 | + while (!empty($bid = $dto->getBids()->fetch())) { |
|
| 256 | 256 | $this->assertIsFloat($bid->getPrice()); |
| 257 | 257 | $this->assertIsFloat($bid->getQuantity()); |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | /** @var MergedOrderBookPriceItemResponse $ask */ |
| 261 | - while(!empty($ask = $dto->getAsks()->fetch())) { |
|
| 261 | + while (!empty($ask = $dto->getAsks()->fetch())) { |
|
| 262 | 262 | $this->assertIsFloat($ask->getPrice()); |
| 263 | 263 | $this->assertIsFloat($ask->getQuantity()); |
| 264 | 264 | } |
@@ -287,13 +287,13 @@ discard block |
||
| 287 | 287 | $this->assertInstanceOf(\DateTime::class, $dto->getTime()); |
| 288 | 288 | |
| 289 | 289 | /** @var MergedOrderBookPriceItemResponse $bid */ |
| 290 | - while(!empty($bid = $dto->getBids()->fetch())) { |
|
| 290 | + while (!empty($bid = $dto->getBids()->fetch())) { |
|
| 291 | 291 | $this->assertIsFloat($bid->getPrice()); |
| 292 | 292 | $this->assertIsFloat($bid->getQuantity()); |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** @var MergedOrderBookPriceItemResponse $ask */ |
| 296 | - while(!empty($ask = $dto->getAsks()->fetch())) { |
|
| 296 | + while (!empty($ask = $dto->getAsks()->fetch())) { |
|
| 297 | 297 | $this->assertIsFloat($ask->getPrice()); |
| 298 | 298 | $this->assertIsFloat($ask->getQuantity()); |
| 299 | 299 | } |
@@ -312,13 +312,13 @@ discard block |
||
| 312 | 312 | $this->assertInstanceOf(OrderBookResponse::class, $dto); |
| 313 | 313 | |
| 314 | 314 | /** @var OrderBookPriceItemResponse $bid */ |
| 315 | - while(!empty($bid = $dto->getBids()->fetch())) { |
|
| 315 | + while (!empty($bid = $dto->getBids()->fetch())) { |
|
| 316 | 316 | $this->assertIsFloat($bid->getPrice()); |
| 317 | 317 | $this->assertIsFloat($bid->getQuantity()); |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** @var OrderBookPriceItemResponse $ask */ |
| 321 | - while(!empty($ask = $dto->getAsks()->fetch())) { |
|
| 321 | + while (!empty($ask = $dto->getAsks()->fetch())) { |
|
| 322 | 322 | $this->assertIsFloat($ask->getPrice()); |
| 323 | 323 | $this->assertIsFloat($ask->getQuantity()); |
| 324 | 324 | } |
@@ -347,13 +347,13 @@ discard block |
||
| 347 | 347 | $this->assertInstanceOf(\DateTime::class, $dto->getTime()); |
| 348 | 348 | |
| 349 | 349 | /** @var MergedOrderBookPriceItemResponse $bid */ |
| 350 | - while(!empty($bid = $dto->getBids()->fetch())) { |
|
| 350 | + while (!empty($bid = $dto->getBids()->fetch())) { |
|
| 351 | 351 | $this->assertIsFloat($bid->getPrice()); |
| 352 | 352 | $this->assertIsFloat($bid->getQuantity()); |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | /** @var MergedOrderBookPriceItemResponse $ask */ |
| 356 | - while(!empty($ask = $dto->getAsks()->fetch())) { |
|
| 356 | + while (!empty($ask = $dto->getAsks()->fetch())) { |
|
| 357 | 357 | $this->assertIsFloat($ask->getPrice()); |
| 358 | 358 | $this->assertIsFloat($ask->getQuantity()); |
| 359 | 359 | } |
@@ -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 | } |