Fix PHP syntax errors