Adjust php syntax errors