open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/DependencyInjection/Compiler/TwigGlobalsCompilerPass.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method setParameter from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

            $container->setParameter('twig.form.resources', $formResources);

Call to method getParameter from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

            $formResources = $container->getParameter('twig.form.resources');

Parameter $container has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open

    public function process(ContainerBuilder $container)

Call to method __construct from undeclared class \Symfony\Component\DependencyInjection\Reference
Open

            $twig->addMethodCall('addGlobal', array('context', new Reference('open_orchestra_backoffice.context_backoffice_manager')));

Call to method getDefinition from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

            $twig = $container->getDefinition('twig');

Call to method hasDefinition from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

        if ($container->hasDefinition('twig')) {

Class implements undeclared interface \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Open

class TwigGlobalsCompilerPass implements CompilerPassInterface

The closing brace for the class must go on the next line after the body
Open

}

Line exceeds 120 characters; contains 135 characters
Open

            $twig->addMethodCall('addGlobal', array('context', new Reference('open_orchestra_backoffice.context_backoffice_manager')));

There are no issues that match your filters.

Category
Status