Passed
Push — master ( 80c37e...24f66c )
by Vladislav
01:47 queued 01:11
created
src/Spot/MarketData/MergedOrderBook/Response/MergedOrderBookResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Spot/MarketData/OrderBook/Response/OrderBookResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/tests/Spot/Account/WalletBalanceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/tests/Spot/MarketData/PublicTradingRecordsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/tests/Spot/MarketData/MergedOrderBookTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/tests/Spot/MarketData/OrderBookTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/tests/Spot/MarketData/InstrumentInfoTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.