# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- - 'app/models/principal.rb'
- 'app/models/project.rb'
- 'app/models/time_entry.rb'
if principal.nil? && / /.match?(keyword)
firstname, lastname = *(keyword.split) # "First Last Throwaway"
- principal ||= principals.detect {|a|
- a.is_a?(User) &&
- firstname.casecmp(a.firstname.to_s) == 0 &&
- lastname.casecmp(a.lastname.to_s) == 0
- }
+ principal ||=
+ principals.detect {|a|
+ a.is_a?(User) &&
+ firstname.casecmp(a.firstname.to_s) == 0 &&
+ lastname.casecmp(a.lastname.to_s) == 0
+ }
end
if principal.nil?
principal ||= principals.detect {|a| keyword.casecmp(a.name) == 0}