@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function fee(Wallet $wallet, int $amount): int |
| 23 | 23 | { |
| 24 | 24 | if ($wallet instanceof Taxable) { |
| 25 | - return (int)($amount * $wallet->getFeePercent() / 100); |
|
| 25 | + return (int) ($amount * $wallet->getFeePercent() / 100); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | return 0; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $wallet->exists or $wallet->save(); |
| 68 | 68 | $proxy = app(ProxyService::class); |
| 69 | 69 | if (!$proxy->has($wallet->getKey())) { |
| 70 | - $proxy->set($wallet->getKey(), (int)$wallet->getOriginal('balance', 0)); |
|
| 70 | + $proxy->set($wallet->getKey(), (int) $wallet->getOriginal('balance', 0)); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | return $proxy[$wallet->getKey()]; |