mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Various code cleanup.
This commit is contained in:
@@ -117,7 +117,6 @@ class FireflyValidator extends Validator
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return bool
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function validateIban($attribute, $value): bool
|
||||
{
|
||||
|
||||
@@ -518,15 +518,11 @@ trait TransactionValidation
|
||||
*/
|
||||
private function compareAccountData(string $type, array $comparison): bool
|
||||
{
|
||||
switch ($type) {
|
||||
default:
|
||||
case 'withdrawal':
|
||||
return $this->compareAccountDataWithdrawal($comparison);
|
||||
case 'deposit':
|
||||
return $this->compareAccountDataDeposit($comparison);
|
||||
case 'transfer':
|
||||
return $this->compareAccountDataTransfer($comparison);
|
||||
}
|
||||
return match ($type) {
|
||||
default => $this->compareAccountDataWithdrawal($comparison),
|
||||
'deposit' => $this->compareAccountDataDeposit($comparison),
|
||||
'transfer' => $this->compareAccountDataTransfer($comparison),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user