Fix Rubocop warnings

When CircleCI inserts the formatter into one of our projects, our build fails – because we've got Rubocop set to fail the build if there are any offences at the 'warning' level or above.

Obviously we can work around that, but this PR fixes those warnings anyway.