Mutualize templates code
coding style
Scrutinizer, change min_tokens of php_cpd
Optimize code
Rename menu_type to type_menu