spacing corrections to comply better with wp php coding standards

the change got somewhat big but to my best knowledge it improves compliance to wordpress php coding standards