Refs #7156: fix rubocop offenses in app/controllers.
Merge pull request #4726 from waldenraines/rubocop-controllers

Refs #7156: fix rubocop offenses in app/controllers.
Refs #6421: Fix spec directory rubocop offenses.