fix php54 syntax and indent