Passed
Branch master (81481e)
by Бабичев
05:54
created
Category
database/migrations/2018_11_07_192923_create_transfers_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function up(): void
32 32
     {
33
-        Schema::create($this->table(), function (Blueprint $table) {
33
+        Schema::create($this->table(), function(Blueprint $table) {
34 34
             $table->increments('id');
35 35
             $table->morphs('from');
36 36
             $table->morphs('to');
Please login to merge, or discard this patch.
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.