| @@ -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(ResponseBuilder::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(ResponseBuilder::make(OrderBookPriceItemResponse::class, $ask)); | 
| 50 | 50 | }, $data['asks']); | 
| 51 | 51 | } | 
| @@ -38,13 +38,13 @@ | ||
| 38 | 38 | $this->setTime($data['time']); | 
| 39 | 39 | |
| 40 | 40 |          if (!empty($data['bids'])) { | 
| 41 | -            array_map(function ($bid) use ($bids) { | |
| 41 | +            array_map(function($bid) use ($bids) { | |
| 42 | 42 | $bids->push(ResponseBuilder::make(OrderBookPriceItemResponse::class, $bid)); | 
| 43 | 43 | }, $data['bids']); | 
| 44 | 44 | } | 
| 45 | 45 | |
| 46 | 46 |          if (!empty($data['asks'])) { | 
| 47 | -            array_map(function ($ask) use ($asks) { | |
| 47 | +            array_map(function($ask) use ($asks) { | |
| 48 | 48 | $asks->push(ResponseBuilder::make(OrderBookPriceItemResponse::class, $ask)); | 
| 49 | 49 | }, $data['asks']); | 
| 50 | 50 | } | 
| @@ -44,7 +44,7 @@ | ||
| 44 | 44 | |
| 45 | 45 | $this->assertNotEmpty($walletResponseData->getBody()->fetch()); | 
| 46 | 46 | |
| 47 | -        while(!empty($walletItem = $walletResponseData->getBody()->fetch())) { | |
| 47 | +        while (!empty($walletItem = $walletResponseData->getBody()->fetch())) { | |
| 48 | 48 | $this->assertInstanceOf(WalletBalanceResponse::class, $walletItem); | 
| 49 | 49 | $this->assertIsString($walletItem->getCoin()); | 
| 50 | 50 | $this->assertIsFloat($walletItem->getFree()); | 
| @@ -35,7 +35,7 @@ | ||
| 35 | 35 | $this->assertInstanceOf(EntityCollection::class, $publicTradingRecordsData->getBody()); | 
| 36 | 36 | |
| 37 | 37 | /** @var PublicTradingRecordsResponse $publicTradingRecord */ | 
| 38 | -        while(!empty($publicTradingRecord = $publicTradingRecordsData->getBody()->fetch())) { | |
| 38 | +        while (!empty($publicTradingRecord = $publicTradingRecordsData->getBody()->fetch())) { | |
| 39 | 39 | $this->assertInstanceOf(PublicTradingRecordsResponse::class, $publicTradingRecord); | 
| 40 | 40 | $this->assertIsBool($publicTradingRecord->getIsBuyerMaker()); | 
| 41 | 41 | $this->assertIsFloat($publicTradingRecord->getPrice()); | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | /** @var MergedOrderBookResponse $lastTradedPrice */ | 
| 40 | -        while(!empty($lastTradedPrice = $lastTradedPriceResponseData->getBody()->fetch())) { | |
| 40 | +        while (!empty($lastTradedPrice = $lastTradedPriceResponseData->getBody()->fetch())) { | |
| 41 | 41 | $this->assertInstanceOf(MergedOrderBookResponse::class, $lastTradedPrice); | 
| 42 | 42 | $this->assertInstanceOf(\DateTime::class, $lastTradedPrice->getTime()); | 
| 43 | 43 | $this->assertInstanceOf(EntityCollection::class, $lastTradedPrice->getAsks()); | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | /** @var OrderBookResponse $orderBook */ | 
| 40 | -        while(!empty($orderBook = $orderBookData->getBody()->fetch())) { | |
| 40 | +        while (!empty($orderBook = $orderBookData->getBody()->fetch())) { | |
| 41 | 41 | $this->assertInstanceOf(OrderBookResponse::class, $orderBook); | 
| 42 | 42 | $this->assertInstanceOf(\DateTime::class, $orderBook->getTime()); | 
| 43 | 43 | $this->assertInstanceOf(EntityCollection::class, $orderBook->getAsks()); | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | $this->assertNotEquals(0, $walletResponseData->getBody()->count()); | 
| 39 | 39 | |
| 40 | 40 | /** @var InstrumentInfoResponse $checkItem */ | 
| 41 | -        while(!empty($checkItem = $walletResponseData->getBody()->fetch())) { | |
| 41 | +        while (!empty($checkItem = $walletResponseData->getBody()->fetch())) { | |
| 42 | 42 | $this->assertInstanceOf(InstrumentInfoResponse::class, $checkItem); | 
| 43 | 43 | $this->assertIsString($checkItem->getName()); | 
| 44 | 44 | $this->assertIsString($checkItem->getAlias()); |