@@ -25,8 +25,8 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | $this->loadMigrationsFrom([ |
28 | - __DIR__.'/../database/migrations_v1', |
|
29 | - __DIR__.'/../database/migrations_v2', |
|
28 | + __DIR__ . '/../database/migrations_v1', |
|
29 | + __DIR__ . '/../database/migrations_v2', |
|
30 | 30 | ]); |
31 | 31 | |
32 | 32 | if (\function_exists('config_path')) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * @return Transfer |
56 | 56 | */ |
57 | - $callback = function () use ($santa, $product, $force) { |
|
57 | + $callback = function() use ($santa, $product, $force) { |
|
58 | 58 | $amount = $product->getAmountProduct(); |
59 | 59 | $meta = $product->getMetaProduct(); |
60 | 60 | $fee = app(WalletService::class) |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public function fee(Wallet $wallet, int $amount): int |
19 | 19 | { |
20 | 20 | if ($wallet instanceof Taxing) { |
21 | - return (int)($amount * $wallet->getFeePercent() / 100); |
|
21 | + return (int) ($amount * $wallet->getFeePercent() / 100); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | return 0; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function change(string $type, int $amount, ?array $meta, bool $confirmed): Transaction |
58 | 58 | { |
59 | - return DB::transaction(function () use ($type, $amount, $meta, $confirmed) { |
|
59 | + return DB::transaction(function() use ($type, $amount, $meta, $confirmed) { |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @var WalletModel $wallet |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $this->exists or $this->save(); |
132 | 132 | $proxy = app(ProxyService::class); |
133 | 133 | if (!$proxy->has($this->getKey())) { |
134 | - $proxy->set($this->getKey(), (int)($this->attributes['balance'] ?? 0)); |
|
134 | + $proxy->set($this->getKey(), (int) ($this->attributes['balance'] ?? 0)); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | return $proxy[$this->getKey()]; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | public function transfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer |
183 | 183 | { |
184 | - return DB::transaction(function () use ($amount, $wallet, $meta, $status) { |
|
184 | + return DB::transaction(function() use ($amount, $wallet, $meta, $status) { |
|
185 | 185 | $fee = app(WalletService::class) |
186 | 186 | ->fee($wallet, $amount); |
187 | 187 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | */ |
280 | 280 | public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer |
281 | 281 | { |
282 | - return DB::transaction(function () use ($amount, $wallet, $meta, $status) { |
|
282 | + return DB::transaction(function() use ($amount, $wallet, $meta, $status) { |
|
283 | 283 | $fee = app(WalletService::class) |
284 | 284 | ->fee($wallet, $amount); |
285 | 285 |