Made it to level 6!

This commit is contained in:
James Cole
2025-01-04 15:16:11 +01:00
parent 54d0433dd4
commit 5602715c96
35 changed files with 99 additions and 103 deletions

View File

@@ -100,12 +100,9 @@ class FireflyValidator extends Validator
}
/**
* @param mixed $attribute
* @param mixed $value
*
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function validateBic($attribute, $value): bool
public function validateBic(mixed $attribute,mixed $value): bool
{
$regex = '/^[a-z]{6}[0-9a-z]{2}([0-9a-z]{3})?\z/i';
$result = preg_match($regex, $value);
@@ -116,7 +113,7 @@ class FireflyValidator extends Validator
return true;
}
public function validateExistingMfaCode($attribute, $value): bool
public function validateExistingMfaCode(mixed $attribute, mixed $value): bool
{
if (!is_string($value) || 6 !== strlen($value)) {
return false;