You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: event_store.rb
    path of file: ./repos/gitlabhq/spec/support/matchers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RSpec
  module PublishedGitlabEventStoreEvents
   
    
    def match_data?(actual, expected)
      return if actual.blank? || expected.blank?

      values_match?(actual.keys, expected.keys) &&
        actual.keys.all? do |key|
          case expected[key]
          when Array
            values_match?(expected[key].sort, actual[key].sort)
          else
            values_match?(expected[key], actual[key])
          end
        end