Skip to content

Commit 2852e71

Browse files
committed
autofix
1 parent 37acbee commit 2852e71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Models/Wallet.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ public function getCurrencyAttribute(): string
159159
return $this->meta['currency'] ?? Str::upper($this->slug);
160160
}
161161

162-
protected function initializeMorphOneWallet(): void
163-
{
164-
$this->uuid = app(UuidFactoryServiceInterface::class)->uuid4();
165-
}
166-
167162
/**
168163
* returns all the receiving transfers to this wallet.
169164
*
@@ -173,4 +168,9 @@ public function receivedTransfers(): HasMany
173168
{
174169
return $this->hasMany(config('wallet.transfer.model', Transfer::class), 'to_id');
175170
}
171+
172+
protected function initializeMorphOneWallet(): void
173+
{
174+
$this->uuid = app(UuidFactoryServiceInterface::class)->uuid4();
175+
}
176176
}

tests/Units/Domain/DiscountTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
use Bavix\Wallet\Test\Infra\Factories\ItemDiscountFactory;
1414
use Bavix\Wallet\Test\Infra\Models\Buyer;
1515
use Bavix\Wallet\Test\Infra\Models\ItemDiscount;
16-
use Bavix\Wallet\Test\Infra\TestCase;
1716
use Bavix\Wallet\Test\Infra\PackageModels\Transaction as InfraTransaction;
1817
use Bavix\Wallet\Test\Infra\PackageModels\Wallet as InfraWallet;
18+
use Bavix\Wallet\Test\Infra\TestCase;
1919

2020
/**
2121
* @internal

0 commit comments

Comments
 (0)