protected function PasswordStrength::result in Password Strength 8.2
Result array.
Parameters
string $password:
float $entropy:
array $matches:
int $score:
array $params:
Return value
array
1 call to PasswordStrength::result()
- PasswordStrength::passwordStrength in src/
PasswordStrength.php - Calculate password strength via non-overlapping minimum entropy patterns.
File
- src/
PasswordStrength.php, line 80
Class
Namespace
Drupal\password_strengthCode
protected function result($password, $entropy, $matches, $score, $params = array()) {
$r = array(
'password' => $password,
'entropy' => $entropy,
'match_sequence' => $matches,
'score' => $score,
);
return array_merge($params, $r);
}