if phpcs options are set, use the Code Sniffer
fix white space
only report warning if they are on a changed line, and move some lines out of the loop