gdbots/ncr-bundle-php

View on GitHub
src/DependencyInjection/Configuration.php

Summary

Maintainability
C
1 day
Test Coverage

Method getElasticaNcrSearchConfigTree has 128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getElasticaNcrSearchConfigTree(): NodeDefinition
    {
        $treeBuilder = new TreeBuilder('elastica');
        $node = $treeBuilder->getRootNode();

Severity: Major
Found in src/DependencyInjection/Configuration.php - About 5 hrs to fix

    Method getConfigTreeBuilder has 79 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getConfigTreeBuilder(): TreeBuilder
        {
            $treeBuilder = new TreeBuilder('gdbots_ncr');
            $rootNode = $treeBuilder->getRootNode();
    
    
    Severity: Major
    Found in src/DependencyInjection/Configuration.php - About 3 hrs to fix

      File Configuration.php has 278 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      declare(strict_types=1);
      
      namespace Gdbots\Bundle\NcrBundle\DependencyInjection;
      
      
      Severity: Minor
      Found in src/DependencyInjection/Configuration.php - About 2 hrs to fix

        Method getDynamoDbNcrConfigTree has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function getDynamoDbNcrConfigTree(): NodeDefinition
            {
                $treeBuilder = new TreeBuilder('dynamodb');
                $node = $treeBuilder->getRootNode();
        
        
        Severity: Minor
        Found in src/DependencyInjection/Configuration.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status