module ApplicationHelper
  def page_title(*title_parts)
    if title_parts.any?
      title_parts.push("Admin") if params[:controller] =~ /^admin\//
      title_parts.push("GOV.UK")
      @page_title = title_parts.reject(&:blank?).join(" - ")
    else
      @page_title
    end
  end

  def page_class(css_class)
    content_for(:page_class, css_class)
  end

  def govspeak(text)
    if text
      content_tag(:div, Govspeak::Document.new(text).to_html.html_safe, class: "govspeak")
    end
  end

  def formatting_help_link
    "<a href='#formatting' role='button' data-toggle='modal' class='if-no-js-hide'>Formatting help</a>".html_safe
  end
end

module ApplicationHelper
  def page_title(*title_parts)
    title_parts.push("Admin") if params[:controller] =~ /^admin\//
    title_parts.push("GOV.UK")
    title_parts.reject(&:blank?).join(" - ")
  end

  def page_class(css_class)
    content_for(:page_class, css_class)
  end

  def govspeak(text)
    if text
      content_tag(:div, Govspeak::Document.new(text).to_html.html_safe, class: "govspeak")
    end
  end

  def formatting_help_link
    "<a href='#formatting' role='button' data-toggle='modal' class='if-no-js-hide'>Formatting help</a>".html_safe
  end
end

Remove use of @page_title from the ApplicationHelper
Remove use of @page_title from the ApplicationHelper

Rubocop was moaning about this, and I can't see where it's used, so
just remove it.
