code style in twig extension