Passed
Push — master ( e91b72...e29617 )
by Бабичев
04:41
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/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.
src/Traits/HasWallet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
              */
237 237
             $collection = $this->getRelation('balance');
238 238
             $relation = $collection->first();
239
-            static::$cachedBalances[$this->getKey()] = (int)($relation->total ?? 0);
239
+            static::$cachedBalances[$this->getKey()] = (int) ($relation->total ?? 0);
240 240
         }
241 241
 
242 242
         return static::$cachedBalances[$this->getKey()];
Please login to merge, or discard this patch.