made code conform to WordPress standards using phpcs for WordPress