]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to app/helpers/application_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 12 Jul 2020 11:35:26 +0000 (11:35 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 12 Jul 2020 11:35:26 +0000 (11:35 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19893 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index d3dc9649b1bbb74a0b2a9c4ef1cc3382201dc025..8cb07bb230488356923a128ba62021e08170e38c 100644 (file)
@@ -188,6 +188,7 @@ module ApplicationHelper
   # Generates a link to a version
   def link_to_version(version, options = {})
     return '' unless version && version.is_a?(Version)
+
     options = {:title => format_date(version.effective_date)}.merge(options)
     link_to_if version.visible?, format_version_name(version), version_path(version), options
   end
@@ -523,6 +524,7 @@ module ApplicationHelper
       [projects,  projects_label,             true]
     ].each do |projects, label, is_tree|
       next if projects.blank?
+
       s << content_tag(:strong, l(label))
       if is_tree
         project_tree(projects, &build_project_link)
@@ -781,6 +783,7 @@ module ApplicationHelper
     @used_accesskeys ||= []
     key = Redmine::AccessKeys.key_for(s)
     return nil if @used_accesskeys.include?(key)
+
     @used_accesskeys << key
     key
   end
@@ -803,6 +806,7 @@ module ApplicationHelper
       raise ArgumentError, 'invalid arguments to textilizable'
     end
     return '' if text.blank?
+
     project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil)
     @only_path = only_path = options.delete(:only_path) == false ? false : true
 
@@ -1246,6 +1250,7 @@ module ApplicationHelper
 
   def parse_sections(text, project, obj, attr, only_path, options)
     return unless options[:edit_section_links]
+
     text.gsub!(HEADING_RE) do
       heading, level = $1, $2
       @current_section += 1
@@ -1697,6 +1702,7 @@ module ApplicationHelper
 
   def export_csv_encoding_select_tag
     return if l(:general_csv_encoding).casecmp('UTF-8') == 0
+
     options = [l(:general_csv_encoding), 'UTF-8']
     content_tag(:p) do
       concat(