You are here

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

PasswordStrength

Namespace

Drupal\password_strength

Code

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);
}