Add safe output twig extension method which return null on ObjectAccessException occur. Refactor all code style by psr2 format to pass codesniffer check.