@@ -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 | }); |