open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/DependencyInjection/Configuration.php

Summary

Maintainability
C
1 day
Test Coverage

Method addTemplateSetConfiguration has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function addTemplateSetConfiguration()
    {
        $builder = new TreeBuilder();
        $templateSet = $builder->root('template_set');

Severity: Major
Found in BackofficeBundle/DependencyInjection/Configuration.php - About 3 hrs to fix

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

<?php

namespace OpenOrchestra\BackofficeBundle\DependencyInjection;

use OpenOrchestra\ModelInterface\Model\ContentInterface;
Severity: Minor
Found in BackofficeBundle/DependencyInjection/Configuration.php - About 3 hrs to fix

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

    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('open_orchestra_backoffice');

Severity: Major
Found in BackofficeBundle/DependencyInjection/Configuration.php - About 2 hrs to fix

Method addFieldTypesParameter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function addFieldTypesParameter()
    {
        $builder = new TreeBuilder();
        $fieldTypes = $builder->root('field_types');

Severity: Minor
Found in BackofficeBundle/DependencyInjection/Configuration.php - About 1 hr to fix

Return type of addFieldTypesSearchableView() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addFieldTypesSearchableView()

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Class implements undeclared interface \Symfony\Component\Config\Definition\ConfigurationInterface
Open

class Configuration implements ConfigurationInterface

Return type of addBlockConfiguration() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addBlockConfiguration()

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $blockConfiguration = $builder->root('block_configuration');

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $rootNode = $treeBuilder->root('open_orchestra_backoffice');

Return type of addConfigurationDisallowedFieldNames() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addConfigurationDisallowedFieldNames()

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Return type of addTemplateSetConfiguration() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addTemplateSetConfiguration()

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $treeBuilder = new TreeBuilder();

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $templateSet = $builder->root('template_set');

Return type of addConfigurationFrontRoleConfiguration() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addConfigurationFrontRoleConfiguration()

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $fieldSearchableView = $builder->root('field_searchable_view');

Return type of addFieldTypesParameter() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addFieldTypesParameter()

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $fieldTypes = $builder->root('field_types');

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Reference to constant TRASH_ITEM_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open

                    NodeInterface::TRASH_ITEM_TYPE,

Return type of addSpecialPageConfiguration() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addSpecialPageConfiguration()

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $builder = new TreeBuilder();

Reference to constant TRASH_ITEM_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

                    ContentInterface::TRASH_ITEM_TYPE

Return type of addConfigurationRoleConfiguration() is undeclared type \Symfony\Component\Config\Definition\Builder\NodeDefinition
Open

    public function addConfigurationRoleConfiguration()

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $configurationRole = $builder->root('configuration_roles');

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $configuration = $builder->root('disallowed_field_names');

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $specialPageNames = $builder->root('special_page_name');

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $configurationRole = $builder->root('front_roles');

Line exceeds 120 characters; contains 131 characters
Open

 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}

There are no issues that match your filters.

Category
Status