@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | $from = app(WalletService::class)->getWallet($this); |
| 46 | 46 | |
| 47 | - return DB::transaction(function () use ($from, $to, $amount) { |
|
| 47 | + return DB::transaction(function() use ($from, $to, $amount) { |
|
| 48 | 48 | $rate = app(ExchangeService::class)->rate($from, $to); |
| 49 | 49 | $fee = app(WalletService::class)->fee($to, $amount); |
| 50 | 50 | $withdraw = $from->forceWithdraw($amount + $fee); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function confirm(Transaction $transaction): bool |
| 21 | 21 | { |
| 22 | - return DB::transaction(function () use ($transaction) { |
|
| 22 | + return DB::transaction(function() use ($transaction) { |
|
| 23 | 23 | $wallet = app(WalletService::class) |
| 24 | 24 | ->getWallet($this); |
| 25 | 25 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function forceConfirm(Transaction $transaction): bool |
| 61 | 61 | { |
| 62 | - return DB::transaction(function () use ($transaction) { |
|
| 62 | + return DB::transaction(function() use ($transaction) { |
|
| 63 | 63 | |
| 64 | 64 | $wallet = app(WalletService::class) |
| 65 | 65 | ->getWallet($this); |