File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments