Fixed PHP snippet scope
Added PHP snippet for ternary, easier than built in one