add gitgutter plugin
add some php refactor function