Fix code quality with rector [skip ci]

This commit is contained in:
James Cole
2025-11-09 09:08:03 +01:00
parent d2610be790
commit 68183a0a0e
209 changed files with 1021 additions and 1248 deletions

View File

@@ -123,11 +123,7 @@ class FireflyValidator extends Validator
}
$regex = '/^[a-z]{6}[0-9a-z]{2}([0-9a-z]{3})?\z/i';
$result = preg_match($regex, $value);
if (0 === $result) {
return false;
}
return true;
return 0 !== $result;
}
public function validateExistingMfaCode(mixed $attribute, mixed $value): bool
@@ -459,7 +455,7 @@ class FireflyValidator extends Validator
*
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function validateSecurePassword($attribute, $value): bool
public function validateSecurePassword($attribute, string $value): bool
{
$verify = false;
if (array_key_exists('verify_password', $this->data)) {