@@ -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')) { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function change(string $type, int $amount, ?array $meta, bool $confirmed): Transaction |
72 | 72 | { |
73 | - return DB::transaction(function () use ($type, $amount, $meta, $confirmed) { |
|
73 | + return DB::transaction(function() use ($type, $amount, $meta, $confirmed) { |
|
74 | 74 | |
75 | 75 | $wallet = $this; |
76 | 76 | if (!($this instanceof WalletModel)) { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $this->exists or $this->save(); |
145 | 145 | $proxy = app(ProxyService::class); |
146 | 146 | if (!$proxy->has($this->getKey())) { |
147 | - $proxy->set($this->getKey(), (int)($this->attributes['balance'] ?? 0)); |
|
147 | + $proxy->set($this->getKey(), (int) ($this->attributes['balance'] ?? 0)); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | return $proxy[$this->getKey()]; |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function transfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer |
196 | 196 | { |
197 | - return DB::transaction(function () use ($amount, $wallet, $meta, $status) { |
|
197 | + return DB::transaction(function() use ($amount, $wallet, $meta, $status) { |
|
198 | 198 | $fee = app(WalletService::class) |
199 | 199 | ->fee($wallet, $amount); |
200 | 200 | |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | */ |
293 | 293 | public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer |
294 | 294 | { |
295 | - return DB::transaction(function () use ($amount, $wallet, $meta, $status) { |
|
295 | + return DB::transaction(function() use ($amount, $wallet, $meta, $status) { |
|
296 | 296 | $fee = app(WalletService::class) |
297 | 297 | ->fee($wallet, $amount); |
298 | 298 |
@@ -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; |