apply php cs
small refactor
refactor twig extension