Skip to content

Commit abec146

Browse files
authored
Merge pull request #8 from bavix/scrutinizer-patch-1
Scrutinizer Auto-Fixes
2 parents f87aaf2 + 47af91c commit abec146

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/migrations/2018_11_07_202152_update_transfers_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function up(): void
3636
*/
3737
public function down(): void
3838
{
39-
Schema::table($this->table(), function (Blueprint $table) {
39+
Schema::table($this->table(), function(Blueprint $table) {
4040
$table->dropColumn('refund');
4141
});
4242
}

src/Traits/CanBePaid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function refund(Product $product): bool
7272
->setModel($this->transfers()->getMorphClass());
7373
}
7474

75-
return DB::transaction(function () use ($product, $transfer) {
75+
return DB::transaction(function() use ($product, $transfer) {
7676
$product->transfer($this, $product->getAmountProduct(), $product->getMetaProduct());
7777
return $transfer->update(['refund' => 1]);
7878
});

0 commit comments

Comments
 (0)