cs fixes

ran the php-cs-fixer with the defaults. it cleaned a lot of errant trailing
spaces and a few ifs