Soullivaneuh/php-cs-fixer-styleci-bridge

View on GitHub
src/StyleCI/Configuration.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

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

Severity: Major
Found in src/StyleCI/Configuration.php - About 2 hrs to fix

    Method getFinderConfigurationNode has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function getFinderConfigurationNode()
        {
            $treeBuilder = new TreeBuilder();
            $node = $treeBuilder->root('finder');
    
    
    Severity: Minor
    Found in src/StyleCI/Configuration.php - About 1 hr to fix

      Avoid too many return statements within this method.
      Open

              return $treeBuilder;
      Severity: Major
      Found in src/StyleCI/Configuration.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status