Passed
Pull Request — master (#9)
by Бабичев
03:04
created
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.
tests/migrations/2014_10_12_000000_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('users', function (Blueprint $table) {
16
+        Schema::create('users', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('email')->unique();
Please login to merge, or discard this patch.
tests/migrations/2018_11_08_214421_create_items_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('items', function (Blueprint $table) {
16
+        Schema::create('items', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->integer('price');
Please login to merge, or discard this patch.
tests/factories/UserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 |
15 15
 */
16 16
 
17
-$factory->define(User::class, function (Faker $faker) {
17
+$factory->define(User::class, function(Faker $faker) {
18 18
     return [
19 19
         'name' => $faker->name,
20 20
         'email' => $faker->unique()->safeEmail,
Please login to merge, or discard this patch.
tests/factories/ItemFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 |
15 15
 */
16 16
 
17
-$factory->define(Item::class, function (Faker $faker) {
17
+$factory->define(Item::class, function(Faker $faker) {
18 18
     return [
19 19
         'name' => $faker->domainName,
20 20
         'price' => \random_int(1, 100),
Please login to merge, or discard this patch.
tests/factories/BuyerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 |
15 15
 */
16 16
 
17
-$factory->define(Buyer::class, function (Faker $faker) {
17
+$factory->define(Buyer::class, function(Faker $faker) {
18 18
     return [
19 19
         'name' => $faker->name,
20 20
         'email' => $faker->unique()->safeEmail,
Please login to merge, or discard this patch.
src/Traits/HasWallet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function transfer(Wallet $wallet, int $amount, ?array $meta = null): Transfer
101 101
     {
102
-        return DB::transaction(function () use ($amount, $wallet, $meta) {
102
+        return DB::transaction(function() use ($amount, $wallet, $meta) {
103 103
             $withdraw = $this->withdraw($amount, $meta);
104 104
             $deposit = $wallet->deposit($amount, $meta);
105 105
             return $this->assemble($wallet, $withdraw, $deposit);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null): Transfer
131 131
     {
132
-        return DB::transaction(function () use ($amount, $wallet, $meta) {
132
+        return DB::transaction(function() use ($amount, $wallet, $meta) {
133 133
             $withdraw = $this->forceWithdraw($amount, $meta);
134 134
             $deposit = $wallet->deposit($amount, $meta);
135 135
             return $this->assemble($wallet, $withdraw, $deposit);
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
              */
239 239
             $collection = $this->getRelation('balance');
240 240
             $relation = $collection->first();
241
-            static::$cachedBalances[$this->getKey()] = (int)($relation->total ?? 0);
241
+            static::$cachedBalances[$this->getKey()] = (int) ($relation->total ?? 0);
242 242
         }
243 243
 
244 244
         return static::$cachedBalances[$this->getKey()];
Please login to merge, or discard this patch.