Use a space after function consistently.
Use a space before functions' bracket consistently.
Merge pull request #11745 from XhmikosR/function-spaces

Be consistent with function () spaces