@@ -41,7 +41,7 @@ trait HasWallet
4141 public function deposit (int $ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction
4242 {
4343 $ self = $ this ;
44- return DB ::transaction (static function () use ($ self , $ amount , $ meta , $ confirmed ) {
44+ return DB ::transaction (static function () use ($ self , $ amount , $ meta , $ confirmed ) {
4545 return app (CommonService::class)
4646 ->deposit ($ self , $ amount , $ meta , $ confirmed );
4747 });
@@ -165,7 +165,7 @@ public function canWithdraw(int $amount, bool $allowZero = null): bool
165165 public function forceWithdraw (int $ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction
166166 {
167167 $ self = $ this ;
168- return DB ::transaction (static function () use ($ self , $ amount , $ meta , $ confirmed ) {
168+ return DB ::transaction (static function () use ($ self , $ amount , $ meta , $ confirmed ) {
169169 return app (CommonService::class)
170170 ->forceWithdraw ($ self , $ amount , $ meta , $ confirmed );
171171 });
@@ -183,7 +183,7 @@ public function forceWithdraw(int $amount, ?array $meta = null, bool $confirmed
183183 public function forceTransfer (Wallet $ wallet , int $ amount , ?array $ meta = null ): Transfer
184184 {
185185 $ self = $ this ;
186- return DB ::transaction (static function () use ($ self , $ amount , $ wallet , $ meta ) {
186+ return DB ::transaction (static function () use ($ self , $ amount , $ wallet , $ meta ) {
187187 return app (CommonService::class)
188188 ->forceTransfer ($ self , $ wallet , $ amount , $ meta );
189189 });
0 commit comments