Fixing PHP warnings, format code.