module Doorkeeper::OAuth::Helpers::ScopeChecker

def self.match?(scope_str, server_scopes, application_scopes = nil)

def self.match?(scope_str, server_scopes, application_scopes = nil)
  Validator.new(scope_str, server_scopes, application_scopes).match?
end

def self.valid?(scope_str, server_scopes, application_scopes = nil)

def self.valid?(scope_str, server_scopes, application_scopes = nil)
  Validator.new(scope_str, server_scopes, application_scopes).valid?
end