Fix php syntax errors