formating php and missing semicolons