fix smarty plugin coding style
split migration class