ModelLogBundle/DependencyInjection/OpenOrchestraModelLogExtension.php
Function load
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Definition
Open
Open
$definition = new Definition($content['repository'], array($content['class']));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Reference
Open
Open
$definition->setFactory(array(new Reference('object_manager'), 'getRepository'));
- Create a ticketCreate a ticket
- Exclude checks
Call to method addMethodCall
from undeclared class \Symfony\Component\DependencyInjection\Definition
Open
Open
$definition->addMethodCall('setAggregationQueryBuilder', array(
- Create a ticketCreate a ticket
- Exclude checks
Parameter $container
has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
public function load(array $configs, ContainerBuilder $container)
- Create a ticketCreate a ticket
- Exclude checks
Call to method setDefinition
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$container->setDefinition('open_orchestra_log.repository.' . $class, $definition);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addMethodCall
from undeclared class \Symfony\Component\DependencyInjection\Definition
Open
Open
$definition->addMethodCall('setFilterTypeManager', array(
- Create a ticketCreate a ticket
- Exclude checks
Call to method load
from undeclared class \Symfony\Component\DependencyInjection\Loader\YamlFileLoader
Open
Open
$loader->load('services.yml');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setParameter
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$container->setParameter('open_orchestra_log.document.' . $class . '.class', $content['class']);
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Reference
Open
Open
new Reference('doctrine_mongodb.odm.default_aggregation_query')
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\ModelLogBundle\DependencyInjection\OpenOrchestraModelLogExtension::processConfiguration
Open
Open
$config = $this->processConfiguration($configuration, $configs);
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\Config\FileLocator
Open
Open
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Reference
Open
Open
new Reference('open_orchestra_pagination.filter_type.manager')
- Create a ticketCreate a ticket
- Exclude checks
Class extends undeclared class \Symfony\Component\HttpKernel\DependencyInjection\Extension
Open
Open
class OpenOrchestraModelLogExtension extends Extension
- Create a ticketCreate a ticket
- Exclude checks
Call to method setFactory
from undeclared class \Symfony\Component\DependencyInjection\Definition
Open
Open
$definition->setFactory(array(new Reference('object_manager'), 'getRepository'));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Loader\YamlFileLoader
Open
Open
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
- Create a ticketCreate a ticket
- Exclude checks
No space found after comma in function call Open
Open
if (method_exists($content['repository'],'setFilterTypeManager')) {
- Create a ticketCreate a ticket
- Exclude checks