Skip to content

Commit ae877c8

Browse files
committed
fix format
1 parent 4d3865a commit ae877c8

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"monolog/monolog": "~1.0|~2.0|~3.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": ">=5.7"
30+
"phpunit/phpunit": "^5.7"
3131
},
3232
"autoload": {
3333
"psr-4": {

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
<env name="API_BASE_URI" value="https://api.kucoin.com" force="false"/>
2828
<env name="API_SKIP_VERIFY_TLS" value="0" force="false"/>
2929
<env name="API_DEBUG_MODE" value="1" force="false"/>
30-
<env name="API_KEY_VERSION" value="1" force="false"/>
30+
<env name="API_KEY_VERSION" value="2" force="false"/>
3131
</php>
3232
</phpunit>

tests/PrivateApi/LendTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testGetPurchaseOrders(Lend $api)
116116
];
117117

118118
$pagination = [
119-
'page' => 1,
119+
'page' => 1,
120120
'pageSize' => 10,
121121
];
122122
$orders = $api->getPurchaseOrders($params, $pagination);
@@ -151,7 +151,7 @@ public function testGetRedeemOrders(Lend $api)
151151
];
152152

153153
$pagination = [
154-
'page' => 1,
154+
'page' => 1,
155155
'pageSize' => 10,
156156
];
157157
$orders = $api->getRedeemOrders($params, $pagination);
@@ -187,9 +187,9 @@ public function testPurchaseUpdate(Lend $api)
187187
$orderNo = $orders['orderNo'];
188188

189189
$update = [
190-
'currency' => $currency,
190+
'currency' => $currency,
191191
'purchaseOrderNo' => $orderNo,
192-
'interestRate' => (string) $rate * 2,
192+
'interestRate' => (string)$rate * 2,
193193
];
194194

195195
$updateOrder = $api->purchaseUpdate($update);

tests/PrivateApi/MarginTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public function testGetBorrowV3(Margin $api)
472472
];
473473

474474
$pagination = [
475-
'pageSize' => 10,
475+
'pageSize' => 10,
476476
'currentPage' => 1,
477477
];
478478

@@ -506,7 +506,7 @@ public function testGetRepayV3(Margin $api)
506506
];
507507

508508
$pagination = [
509-
'pageSize' => 10,
509+
'pageSize' => 10,
510510
'currentPage' => 1,
511511
];
512512

@@ -541,7 +541,7 @@ public function testGetInterestV3(Margin $api)
541541
];
542542

543543
$pagination = [
544-
'pageSize' => 10,
544+
'pageSize' => 10,
545545
'currentPage' => 1,
546546
];
547547

tests/PrivateApi/OrderTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ protected function createMarginHf(Order $api)
12521252

12531253
$tradeStats = $symbolApi->get24HStats($symbol);
12541254
$nowPrice = $tradeStats['last'];
1255-
$openPrice = (string) round($nowPrice * '0.3', 2);
1255+
$openPrice = (string)round($nowPrice * '0.3', 2);
12561256
$order = [
12571257
'clientOid' => uniqid(),
12581258
'type' => 'limit',
@@ -1285,9 +1285,8 @@ public function testCreateTest(Order $api)
12851285
'side' => 'buy',
12861286
'symbol' => 'BTC-USDT',
12871287
'remark' => 'test order',
1288-
1289-
'price' => 100,
1290-
'size' => 0.001,
1288+
'price' => 100,
1289+
'size' => 0.001,
12911290
];
12921291

12931292
$data = $api->createTest($order);
@@ -1334,7 +1333,7 @@ public function testMarginHfCreate(Order $api)
13341333

13351334
$tradeStats = $symbolApi->get24HStats($symbol);
13361335
$nowPrice = $tradeStats['last'];
1337-
$openPrice = (string) round($nowPrice * '0.3', 2);
1336+
$openPrice = (string)round($nowPrice * '0.3', 2);
13381337
$order = [
13391338
'clientOid' => uniqid(),
13401339
'type' => 'limit',

0 commit comments

Comments
 (0)