changed tabs to 4 spaces, as a first step towards PSR-2.
replaced "else { if {" and "else if" with elseif
changed overly specific selectors