Fixes foodcritic warnings.
Fixes syntax error.