@@ -45,7 +45,7 @@ trait HasWallet
4545 */
4646 public function deposit (int $ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction
4747 {
48- return DB ::transaction (function () use ($ amount , $ meta , $ confirmed ) {
48+ return DB ::transaction (function () use ($ amount , $ meta , $ confirmed ) {
4949 return app (CommonService::class)
5050 ->deposit ($ this , $ amount , $ meta , $ confirmed );
5151 });
@@ -160,7 +160,7 @@ public function canWithdraw(int $amount): bool
160160 */
161161 public function forceWithdraw (int $ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction
162162 {
163- return DB ::transaction (function () use ($ amount , $ meta , $ confirmed ) {
163+ return DB ::transaction (function () use ($ amount , $ meta , $ confirmed ) {
164164 return app (CommonService::class)
165165 ->forceWithdraw ($ this , $ amount , $ meta , $ confirmed );
166166 });
@@ -177,7 +177,7 @@ public function forceWithdraw(int $amount, ?array $meta = null, bool $confirmed
177177 */
178178 public function forceTransfer (Wallet $ wallet , int $ amount , ?array $ meta = null ): Transfer
179179 {
180- return DB ::transaction (function () use ($ amount , $ wallet , $ meta ) {
180+ return DB ::transaction (function () use ($ amount , $ wallet , $ meta ) {
181181 return app (CommonService::class)
182182 ->forceTransfer ($ this , $ wallet , $ amount , $ meta );
183183 });
0 commit comments