Add PHP syntax checking using PHP-Parser
Added PHP syntax check before saving to disk to try and stop white screen of death issues