src/Matcher.php
public function getMatches($password, array $userInputs = [])
    {
        $matches = [];
        foreach ($this->getMatchers() as $matcher) {
            $matched = $matcher::match($password, $userInputs);
            if (is_array($matched) && !empty($matched)) {
                $matches = array_merge($matches, $matched);
            }
        }

        return $matches;
    }
public function getMatches($password, array $userInputs = [])
    {
        $matches = [];
        foreach ($this->getMatchers() as $matcher) {
            $matched = $matcher::match($password, $userInputs);
            if (is_array($matched) && !empty($matched)) {
                $matches = array_merge($matches, $matched);
            }
        }

        return $matches;
    }
public function getMatches ( $ password , array $ userInputs = [ ] ) { $ matches = [ ] ; foreach ( $ this -> getMatchers ( ) as $ matcher ) { $ matched = $ matcher :: match ( $ password , $ userInputs ) ; if ( is_array ( $ matched ) && ! empty ( $ matched ) ) { $ matches = array_merge ( $ matches , $ matched ) ; } } return $ matches ; }
Get matches for a password.

@param string $password   Password string to match
@param array  $userInputs Array of values related to the user (optional)
@code array('Alice Smith')
@endcode

@return array Array of Match objects
Get matches for a password .