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