Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
utxo-one committed Jul 29, 2023
1 parent 4f65cc4 commit 66110b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Result/StoreOnChainWalletTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public function getLabels(): array
return $data['labels'];
}

public function getBlockHash():? string
public function getBlockHash(): ?string
{
$data = $this->getData();
return $data['blockHash'];
}

public function getBlockHeight():? int
public function getBlockHeight(): ?int
{
$data = $this->getData();
return $data['blockHeight'];
Expand Down
11 changes: 5 additions & 6 deletions tests/StoreOnChainWalletTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use BTCPayServer\Result\StoreOnChainWalletAddress;
use BTCPayServer\Result\StoreOnChainWalletFeeRate;
use BTCPayServer\Result\StoreOnChainWalletTransaction;
use BTCPayServer\Result\StoreOnChainWalletTransactionDestination;
use BTCPayServer\Result\StoreOnChainWalletTransactionList;
use BTCPayServer\Result\StoreOnChainWalletUtxo;
use BTCPayServer\Result\StoreOnChainWalletUtxoList;
Expand All @@ -30,7 +29,7 @@ public function setUp(): void
}

/** @group getStoreOnChainWalletOverview */
public function testItCanGetStoreOnChainWalletOverview(): void
public function testItCanGetStoreOnChainWalletOverview(): void
{
//$this->markTestIncomplete('BTC doesnt have any derivation scheme set');
$overview = $this->storeOnChainWalletClient->getStoreOnChainWalletOverview(
Expand All @@ -46,7 +45,7 @@ public function testItCanGetStoreOnChainWalletOverview(): void
}

/** @group getStoreOnChainWalletFeeRate */
public function testItCanGetStoreOnChainWalletFeeRate(): void
public function testItCanGetStoreOnChainWalletFeeRate(): void
{
$feeRate = $this->storeOnChainWalletClient->getStoreOnChainWalletFeeRate(
$this->storeId,
Expand All @@ -58,7 +57,7 @@ public function testItCanGetStoreOnChainWalletFeeRate(): void
}

/** @group getStoreOnChainWalletAddress */
public function testItCanGetStoreOnChainWalletAddress(): void
public function testItCanGetStoreOnChainWalletAddress(): void
{
$address = $this->storeOnChainWalletClient->getStoreOnChainWalletAddress(
$this->storeId,
Expand Down Expand Up @@ -107,7 +106,7 @@ public function testItCanGetStoreOnChainWalletTransactions(): void
/** @group createStoreOnChainWalletTransaction */
public function testItCanCreateGetUpdateStoreOnChainWalletTransaction(): void
{
$destination =
$destination =
[
'destination' => 'tb1q2yy5gxpdlsr40xjvy7v6x4gjxr5y8t428nqppa',
'amount' => "0.00001",
Expand Down Expand Up @@ -196,4 +195,4 @@ public function testItCanGetStoreOnChainWalletUtxos(): void
$this->assertIsInt($utxo->getConfirmations());
}
}
}
}

0 comments on commit 66110b8

Please sign in to comment.