Fix calling View\Helper\BasePath from CLI results in fatal error.
Fix CS.
Merge branch 'hotfix/5152'

Close #5152
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' into develop

Forward port #5161