Skip to content

Commit 8c2f586

Browse files
committed
Merge branch 'unit-wallets.walletTransactions' of github.com:bavix/laravel-wallet into unit-wallets.walletTransactions
2 parents d954aa2 + 58a4e1f commit 8c2f586

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/Traits/CanConfirm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function confirm(Transaction $transaction): bool
5050
// Check if the transaction is already confirmed.
5151
// If it is, throw an exception.
5252
if ($transaction->confirmed) {
53-
// Why is there a check here without calling refresh?
53+
// Why is there a check here without calling refresh?
5454
// It's because this check can be performed in force confirm again.
5555
throw new ConfirmedInvalid(
5656
// Get the error message from the translator service.

tests/Units/Domain/ConfirmTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public function testSafeConfirmedInvalid(): void
7575

7676
self::assertSame(0, $wallet->balanceInt);
7777

78-
$transaction = $wallet->forceWithdraw(1000, ['desc' => 'confirmed']);
78+
$transaction = $wallet->forceWithdraw(1000, [
79+
'desc' => 'confirmed',
80+
]);
7981

8082
self::assertSame(-1000, $wallet->balanceInt);
8183
self::assertTrue($transaction->confirmed);
@@ -238,9 +240,9 @@ public function testSafeUnconfirmed(): void
238240

239241
public function testSafeUnconfirmedWalletOwnerInvalid(): void
240242
{
241-
/**
242-
* @var Buyer $buyer1
243-
* @var Buyer $buyer2
243+
/**
244+
* @var Buyer $buyer1
245+
* @var Buyer $buyer2
244246
**/
245247
[$buyer1, $buyer2] = BuyerFactory::times(2)->create();
246248
$wallet1 = $buyer1->wallet;

0 commit comments

Comments
 (0)