@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function up(): void |
| 32 | 32 | { |
| 33 | - Schema::create($this->table(), function (Blueprint $table) { |
|
| 33 | + Schema::create($this->table(), function(Blueprint $table) { |
|
| 34 | 34 | $table->increments('id'); |
| 35 | 35 | $table->morphs('from'); |
| 36 | 36 | $table->morphs('to'); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function up(): void |
| 23 | 23 | { |
| 24 | - Schema::create($this->table(), function (Blueprint $table) { |
|
| 24 | + Schema::create($this->table(), function(Blueprint $table) { |
|
| 25 | 25 | $table->increments('id'); |
| 26 | 26 | $table->morphs('payable'); |
| 27 | 27 | $table->enum('type', ['deposit', 'withdraw']); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | public function transfer(Wallet $wallet, int $amount, ?array $meta = null): Transfer |
| 100 | 100 | { |
| 101 | - return DB::transaction(function () use ($amount, $wallet, $meta) { |
|
| 101 | + return DB::transaction(function() use ($amount, $wallet, $meta) { |
|
| 102 | 102 | $withdraw = $this->withdraw($amount, $meta); |
| 103 | 103 | $deposit = $wallet->deposit($amount, $meta); |
| 104 | 104 | return $this->assemble($wallet, $withdraw, $deposit); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null): Transfer |
| 130 | 130 | { |
| 131 | - return DB::transaction(function () use ($amount, $wallet, $meta) { |
|
| 131 | + return DB::transaction(function() use ($amount, $wallet, $meta) { |
|
| 132 | 132 | $withdraw = $this->forceWithdraw($amount, $meta); |
| 133 | 133 | $deposit = $wallet->deposit($amount, $meta); |
| 134 | 134 | return $this->assemble($wallet, $withdraw, $deposit); |