src/Report/HtmlReport.php
private function buildTwig($directory, $options)
    {
        $dirs = $this->getDirectories($directory);

        $loader = new \Twig_Loader_Filesystem($dirs);
        $twig = new \Twig_Environment($loader, $options);

        $twig->addRuntimeLoader(new RuntimeLoader());
        $twig->addExtension(new ReportTwigExtension());

        return $twig;
    }
private function buildTwig($directory, $options)
    {
        $dirs = $this->getDirectories($directory);

        $loader = new \Twig_Loader_Filesystem($dirs);
        $twig = new \Twig_Environment($loader, $options);

        $twig->addRuntimeLoader(new RuntimeLoader());
        $twig->addExtension(new ReportTwigExtension());

        return $twig;
    }
@param $directory
@param $options

@return \Twig_Environment