Fix missing spaces before and after equal signs in method definitions
Merge pull request #8730 from robin850/master

Fix missing spaces in method definitions