class SplitIoClient::SplitManager

def split(feature_flag_name)

@returns a split view

method to get a split view
def split(feature_flag_name)
  return unless @config.valid_mode && @splits_repository && @config.split_validator.valid_split_parameters(feature_flag_name)
  if !ready?
    @config.logger.error("split: the SDK is not ready, the operation cannot be executed")
    return
  end
  sanitized_feature_flag_name = feature_flag_name.to_s.strip
  if feature_flag_name.to_s != sanitized_feature_flag_name
    @config.logger.warn("split: feature_flag_name #{feature_flag_name} has extra whitespace, trimming")
    feature_flag_name = sanitized_feature_flag_name
  end
  split = @splits_repository.get_split(feature_flag_name)
  if ready? && split.nil?
    @config.logger.warn("split: you passed #{feature_flag_name} " \
      'that does not exist in this environment, please double check what feature flags exist in the Split user interface')
  end
  return if split.nil? || Engine::Models::Split.archived?(split)
  build_split_view(feature_flag_name, split)
end