Fix to invalid php structure