# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
Style/ParenthesesAroundCondition:
Exclude:
- - 'app/controllers/context_menus_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/models/project.rb'
- 'app/models/query.rb'
before_action :find_issues, :only => :issues
def issues
- if (@issues.size == 1)
+ if @issues.size == 1
@issue = @issues.first
end
@issue_ids = @issues.map(&:id).sort
preload(:user).to_a
(render_404; return) unless @time_entries.present?
- if (@time_entries.size == 1)
+ if @time_entries.size == 1
@time_entry = @time_entries.first
end