@@ -99,7 +99,7 @@ public function canWithdraw(int $amount): bool
9999 */
100100 public function transfer (Wallet $ wallet , int $ amount , ?array $ meta = null ): Transfer
101101 {
102- return DB ::transaction (function () use ($ amount , $ wallet , $ meta ) {
102+ return DB ::transaction (function () use ($ amount , $ wallet , $ meta ) {
103103 $ withdraw = $ this ->withdraw ($ amount , $ meta );
104104 $ deposit = $ wallet ->deposit ($ amount , $ meta );
105105 return $ this ->assemble ($ wallet , $ withdraw , $ deposit );
@@ -129,7 +129,7 @@ public function safeTransfer(Wallet $wallet, int $amount, ?array $meta = null):
129129 */
130130 public function forceTransfer (Wallet $ wallet , int $ amount , ?array $ meta = null ): Transfer
131131 {
132- return DB ::transaction (function () use ($ amount , $ wallet , $ meta ) {
132+ return DB ::transaction (function () use ($ amount , $ wallet , $ meta ) {
133133 $ withdraw = $ this ->forceWithdraw ($ amount , $ meta );
134134 $ deposit = $ wallet ->deposit ($ amount , $ meta );
135135 return $ this ->assemble ($ wallet , $ withdraw , $ deposit );
@@ -238,7 +238,7 @@ public function getBalanceAttribute(): int
238238 */
239239 $ collection = $ this ->getRelation ('balance ' );
240240 $ relation = $ collection ->first ();
241- static ::$ cachedBalances [$ this ->getKey ()] = (int )($ relation ->total ?? 0 );
241+ static ::$ cachedBalances [$ this ->getKey ()] = (int ) ($ relation ->total ?? 0 );
242242 }
243243
244244 return static ::$ cachedBalances [$ this ->getKey ()];
0 commit comments