Remove php snippet and Add if else for eruby