Completed
Push — master ( d38f7e...cf5ef8 )
by Бабичев
12s
created
src/Traits/HasWallet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Traits/CanBePaid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.