Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

linting

ulfertsa9543d3404e7
diff --git a/app/models/users/scopes/having_reminder_mail_to_send.rb b/app/models/users/scopes/having_reminder_mail_to_send.rb
index 7ff5c829fa4..787d5925676 100644
--- a/app/models/users/scopes/having_reminder_mail_to_send.rb
+++ b/app/models/users/scopes/having_reminder_mail_to_send.rb
@@ -120,12 +120,12 @@ module Users::Scopes
quarters = ((latest_time - earliest_time) / 60 / 15).floor
(1..quarters).each_with_object([next_quarter_hour(earliest_time)]) do |i, times|
- times << times.last + i * 15.minutes
+ times << (times.last + (i * 15.minutes))
end
end
def next_quarter_hour(time)
- (time + (time.min % 15 == 0 ? 0.minutes : (15 - time.min % 15).minutes))
+ (time + (time.min % 15 == 0 ? 0.minutes : (15 - (time.min % 15)).minutes))
end
end
end