Format code fixing PHP warnings