class Spree::Admin::ReviewSettingsController < Spree::Admin::BaseController
  def update
    # workaround for unset checkbox behaviour
    params[:preferences][:include_unapproved_reviews] = false if params[:preferences][:include_unapproved_reviews].blank?
    params[:preferences][:feedback_rating] = false            if params[:preferences][:feedback_rating].blank?
    params[:preferences][:show_email] = false                 if params[:preferences][:show_email].blank?
    params[:preferences][:require_login] = false              if params[:preferences][:require_login].blank?
    Spree::Reviews::Config.set(params[:preferences])

    respond_to do |format|
      format.html {
        redirect_to admin_review_settings_path
      }
    end
  end
end

class Spree::Admin::ReviewSettingsController < Spree::Admin::BaseController
  def update
    # workaround for unset checkbox behaviour
    params[:preferences][:include_unapproved_reviews] = false if params[:preferences][:include_unapproved_reviews].blank?
    params[:preferences][:feedback_rating] = false            if params[:preferences][:feedback_rating].blank?
    params[:preferences][:show_email] = false                 if params[:preferences][:show_email].blank?
    params[:preferences][:require_login] = false              if params[:preferences][:require_login].blank?
    Spree::Reviews::Config.set(params[:preferences])

    respond_to do |format|
      format.html do
        redirect_to admin_review_settings_path
      end
    end
  end
end

Use multi-lined do and end in ReviewSettingsController
Use multi-lined do and end in ReviewSettingsController
