Passed
Push — master ( 608bba...9c175b )
by Бабичев
06:22 queued 04:38
created
database/migrations/2018_11_06_222923_create_transactions_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function up(): void
23 23
     {
24
-        Schema::create($this->table(), function (Blueprint $table) {
24
+        Schema::create($this->table(), function(Blueprint $table) {
25 25
             $table->increments('id');
26 26
             $table->morphs('payable');
27 27
             $table->enum('type', ['deposit', 'withdraw']);
Please login to merge, or discard this patch.
src/Traits/HasWallet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function transfer(Wallet $wallet, int $amount, ?array $meta = null): Transfer
100 100
     {
101
-        return DB::transaction(function () use ($amount, $wallet, $meta) {
101
+        return DB::transaction(function() use ($amount, $wallet, $meta) {
102 102
             $withdraw = $this->withdraw($amount, $meta);
103 103
             $deposit = $wallet->deposit($amount, $meta);
104 104
             return $this->assemble($wallet, $withdraw, $deposit);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null): Transfer
130 130
     {
131
-        return DB::transaction(function () use ($amount, $wallet, $meta) {
131
+        return DB::transaction(function() use ($amount, $wallet, $meta) {
132 132
             $withdraw = $this->forceWithdraw($amount, $meta);
133 133
             $deposit = $wallet->deposit($amount, $meta);
134 134
             return $this->assemble($wallet, $withdraw, $deposit);
Please login to merge, or discard this patch.