summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers/time_report.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-06 14:50:14 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-06 14:50:14 +0000
commit9eafc3e9a2dad4de36d64bd26d2e9f18c2943b98 (patch)
tree0e1351d51bbb2e4e688bcc6d12d97fb672a0d09d /lib/redmine/helpers/time_report.rb
parent2e0ec5b0e66d288a476d79b2163a316dbbed0f8c (diff)
downloadredmine-9eafc3e9a2dad4de36d64bd26d2e9f18c2943b98.tar.gz
redmine-9eafc3e9a2dad4de36d64bd26d2e9f18c2943b98.zip
Remove trailing whitespaces from lib (#31506).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/helpers/time_report.rb')
-rw-r--r--lib/redmine/helpers/time_report.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/helpers/time_report.rb b/lib/redmine/helpers/time_report.rb
index 33a32f887..eb6abed04 100644
--- a/lib/redmine/helpers/time_report.rb
+++ b/lib/redmine/helpers/time_report.rb
@@ -58,7 +58,7 @@ module Redmine
end
@hours << h
end
-
+
@hours.each do |row|
case @columns
when 'year'
@@ -71,13 +71,13 @@ module Redmine
row['day'] = "#{row['spent_on']}"
end
end
-
+
min = @hours.collect {|row| row['spent_on']}.min
@from = min ? min.to_date : User.current.today
max = @hours.collect {|row| row['spent_on']}.max
@to = max ? max.to_date : User.current.today
-
+
@total_hours = @hours.inject(0) {|s,k| s = s + k['hours'].to_f}
@periods = []