src/Matchers/DateMatch.php
public static function match($password, array $userInputs = [])
    {
        $matches = [];
        $dates = static::datesWithoutSeparators($password) + static::datesWithSeparators($password);
        foreach ($dates as $date) {
            $matches[] = new static($password, $date['begin'], $date['end'], $date['token'], $date);
        }

        return $matches;
    }
public static function match($password, array $userInputs = [])
    {
        $matches = [];
        $dates = static::datesWithoutSeparators($password) + static::datesWithSeparators($password);
        foreach ($dates as $date) {
            $matches[] = new static($password, $date['begin'], $date['end'], $date['token'], $date);
        }

        return $matches;
    }
public static function match ( $ password , array $ userInputs = [ ] ) { $ matches = [ ] ; $ dates = static :: datesWithoutSeparators ( $ password ) + static :: datesWithSeparators ( $ password ) ; foreach ( $ dates as $ date ) { $ matches [ ] = new static ( $ password , $ date [ 'begin' ] , $ date [ 'end' ] , $ date [ 'token' ] , $ date ) ; } return $ matches ; }
Match occurences of dates in a password.

@copydoc Match::match()

@param       $password
@param array $userInputs

@return array
Match occurences of dates in a password .