Fix calling View\Helper\BasePath from CLI results in fatal error.
Fix CS.
Merge pull request #5161 from Thinkscape/hotfix/basePath-fatal-error

Fix calling View\Helper\BasePath from CLI results in fatal error.
[#5161] consistency fixes

- we do not typically declare member variables inside test cases
- restored space for operator alignment
Merge branch 'hotfix/5161'

Close #5161