]> source.dussan.org Git - redmine.git/commitdiff
Replaces camelcase variable names (#14015).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 May 2013 08:42:41 +0000 (08:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 May 2013 08:42:41 +0000 (08:42 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11831 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 8f14d16bf0c1625a8127272153a609b227206d9a..82c0f2e6324e7d43ea65c3211703e36f334c7edf 100644 (file)
@@ -893,9 +893,9 @@ class Issue < ActiveRecord::Base
 
       # Add parent to queue, if not already in it.
       parent = current_issue.parent
-      parentStatus = issue_status[parent]
+      parent_status = issue_status[parent]
 
-      if parent && (parentStatus == eNOT_DISCOVERED) && !except.include?(parent)
+      if parent && (parent_status == eNOT_DISCOVERED) && !except.include?(parent)
         queue << parent
         issue_status[parent] = ePROCESS_RELATIONS_ONLY
       end
@@ -918,16 +918,16 @@ class Issue < ActiveRecord::Base
       end
 
       # Add related issues to the queue, if they are not already in it.
-      current_issue.relations_from.map(&:issue_to).each do |relatedIssue|
-        if (issue_status[relatedIssue] == eNOT_DISCOVERED) && !except.include?(relatedIssue)
-          queue << relatedIssue
-          issue_status[relatedIssue] = ePROCESS_ALL
-        elsif (issue_status[relatedIssue] == eRELATIONS_PROCESSED) && !except.include?(relatedIssue)
-          queue << relatedIssue
-          issue_status[relatedIssue] = ePROCESS_CHILDREN_ONLY
-        elsif (issue_status[relatedIssue] == ePROCESS_RELATIONS_ONLY) && !except.include?(relatedIssue)
-          queue << relatedIssue
-          issue_status[relatedIssue] = ePROCESS_ALL
+      current_issue.relations_from.map(&:issue_to).each do |related_issue|
+        if (issue_status[related_issue] == eNOT_DISCOVERED) && !except.include?(related_issue)
+          queue << related_issue
+          issue_status[related_issue] = ePROCESS_ALL
+        elsif (issue_status[related_issue] == eRELATIONS_PROCESSED) && !except.include?(related_issue)
+          queue << related_issue
+          issue_status[related_issue] = ePROCESS_CHILDREN_ONLY
+        elsif (issue_status[related_issue] == ePROCESS_RELATIONS_ONLY) && !except.include?(related_issue)
+          queue << related_issue
+          issue_status[related_issue] = ePROCESS_ALL
         end
       end