Applying the WordPress Coding Standards

using the plugin
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards