mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-11 09:29:34 +00:00
Auto commit for release 'develop' on 2025-01-26
This commit is contained in:
@@ -105,7 +105,7 @@ class FireflyValidator extends Validator
|
||||
*/
|
||||
public function validateBic(mixed $attribute, mixed $value): bool
|
||||
{
|
||||
if(!is_string($value) || strlen($value) < 8) {
|
||||
if (!is_string($value) || strlen($value) < 8) {
|
||||
return false;
|
||||
}
|
||||
$regex = '/^[a-z]{6}[0-9a-z]{2}([0-9a-z]{3})?\z/i';
|
||||
@@ -471,8 +471,9 @@ class FireflyValidator extends Validator
|
||||
*/
|
||||
public function validateUniqueAccountForUser($attribute, $value, $parameters): bool
|
||||
{
|
||||
if(is_array($value)) {
|
||||
if (is_array($value)) {
|
||||
Log::debug('$value is an array, always return false', $value);
|
||||
|
||||
return false;
|
||||
}
|
||||
// because a user does not have to be logged in (tests and what-not).
|
||||
|
||||
Reference in New Issue
Block a user