@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | trait CanPay { |
| 12 | 12 | public function pay(Product $product, string $action = Transfer::ACTION_PAID, bool $force = false): Transfer |
| 13 | 13 | { |
| 14 | - if (! $product->canBePaid($action)) { |
|
| 14 | + if (!$product->canBePaid($action)) { |
|
| 15 | 15 | throw new ProductEnded(trans('wallet::errors.product_stock')); |
| 16 | 16 | } |
| 17 | 17 | |
@@ -65,12 +65,12 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $transfer = $this->paid($product, $action); |
| 67 | 67 | |
| 68 | - if (! $transfer) { |
|
| 68 | + if (!$transfer) { |
|
| 69 | 69 | throw (new ModelNotFoundException()) |
| 70 | 70 | ->setModel(config('wallet.transfer.model')); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - return \DB::transaction(function () use ($transfer) { |
|
| 73 | + return \DB::transaction(function() use ($transfer) { |
|
| 74 | 74 | $transfer->withdraw->update([ |
| 75 | 75 | 'confirmed' => false, |
| 76 | 76 | ]); |