Refs #7456 - Fix rubocop warnings