Fix CodeSniffer violations

Change indentation to ensure code confirms to CodeSniffer rules.
Merge pull request #311 from mperry2/scopeindent

Fix CodeSniffer violations