mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 12:27:05 +00:00
Clean up code.
This commit is contained in:
@@ -49,14 +49,14 @@ class AccountValidator
|
||||
use TransferValidation;
|
||||
use WithdrawalValidation;
|
||||
|
||||
public bool $createMode;
|
||||
public string $destError;
|
||||
public ?Account $destination;
|
||||
public ?Account $source;
|
||||
public string $sourceError;
|
||||
private AccountRepositoryInterface $accountRepository;
|
||||
private array $combinations;
|
||||
private string $transactionType;
|
||||
public bool $createMode;
|
||||
public string $destError;
|
||||
public ?Account $destination;
|
||||
public ?Account $source;
|
||||
public string $sourceError;
|
||||
private AccountRepositoryInterface $accountRepository;
|
||||
private array $combinations;
|
||||
private string $transactionType;
|
||||
|
||||
/**
|
||||
* AccountValidator constructor.
|
||||
|
@@ -104,7 +104,7 @@ class FireflyValidator extends Validator
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
public function validateBic(mixed $attribute, mixed $value): bool
|
||||
public function validateBic(mixed $attribute, mixed $value): bool
|
||||
{
|
||||
if (!is_string($value) || strlen($value) < 8) {
|
||||
return false;
|
||||
@@ -857,8 +857,7 @@ class FireflyValidator extends Validator
|
||||
->where('trigger', $trigger)
|
||||
->where('response', $response)
|
||||
->where('delivery', $delivery)
|
||||
->where('url', $url)->count()
|
||||
;
|
||||
->where('url', $url)->count();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user