Update IF brackets to meet WP code standards

https://make.wordpress.org/core/handbook/coding-standards/php/#brace-sty
le