Make Ruby style consistent throughout the codebase

Includes some small adjustments to Hound/Rubocop config.
Space between { and | missing.<br>Space missing inside }.