[psr-2] Apply rules about spaces around method declarations

php-cs-fixer fix --fixers=function_declaration ./library
php-cs-fixer fix --fixers=function_declaration ./tests
[psr-2] Anonymous functions must have the brace at the same line
Close #5281
Merge branch 'hotfix/psr-2-function_declaration' of github.com:Maks3w/zf2 into Maks3w-hotfix/psr-2-function_declaration
Forward port #5282