Skip to content

Commit 0d0f1d2

Browse files
committed
codacy fix
1 parent ab7ce4e commit 0d0f1d2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Services/TransactionService.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ public function makeOne(
3434
): Transaction {
3535
assert(in_array($type, [Transaction::TYPE_DEPOSIT, Transaction::TYPE_WITHDRAW], true));
3636

37-
if ($type === Transaction::TYPE_DEPOSIT) {
38-
$dto = $this->prepareService->deposit($wallet, (string) $amount, $meta, $confirmed);
39-
} else {
40-
$dto = $this->prepareService->withdraw($wallet, (string) $amount, $meta, $confirmed);
41-
}
37+
$dto = $type === Transaction::TYPE_DEPOSIT
38+
? $this->prepareService->deposit($wallet, (string) $amount, $meta, $confirmed)
39+
: $this->prepareService->withdraw($wallet, (string) $amount, $meta, $confirmed);
4240

4341
$transactions = $this->apply([
4442
$dto->getWalletId() => $wallet,

0 commit comments

Comments
 (0)