change php style and add codeigniter snippets