@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function down(): void |
33 | 33 | { |
34 | - Schema::table($this->table(), function (Blueprint $table) { |
|
34 | + Schema::table($this->table(), function(Blueprint $table) { |
|
35 | 35 | $table->dropColumn('refund'); |
36 | 36 | }); |
37 | 37 | } |
@@ -220,7 +220,7 @@ |
||
220 | 220 | */ |
221 | 221 | $collection = $this->getRelation('balance'); |
222 | 222 | $relation = $collection->first(); |
223 | - $this->cachedBalance = (int)($relation->total ?? 0); |
|
223 | + $this->cachedBalance = (int) ($relation->total ?? 0); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | return $this->cachedBalance; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | ->setModel($this->transfers()->getMorphClass()); |
69 | 69 | } |
70 | 70 | |
71 | - return DB::transaction(function () use ($product, $transfer) { |
|
71 | + return DB::transaction(function() use ($product, $transfer) { |
|
72 | 72 | $product->transfer($this, $product->getAmountProduct(), $product->getMetaProduct()); |
73 | 73 | return $transfer->update(['refund' => 1]); |
74 | 74 | }); |