groundctrl/concerto-bundle

View on GitHub
src/DependencyInjection/Configuration.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method addSolosSection has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function addSolosSection(ArrayNodeDefinition $rootNode)
    {
        $useIfThere_setNullOtherwise = function(&$ary, $k) {
            if (array_key_exists($k, $ary)) {
                return $ary[$k];
Severity: Major
Found in src/DependencyInjection/Configuration.php - About 2 hrs to fix

Avoid too many return statements within this method.
Open

                                return $v['class'] !== null && $v['service'] !== null;
Severity: Major
Found in src/DependencyInjection/Configuration.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

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

Avoid too many return statements within this method.
Open

                            ->ifTrue(function($v) { return $v['class'] === null && $v['service'] === null; })
Severity: Major
Found in src/DependencyInjection/Configuration.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                                return [ 'class'     => $maybePredefinedSolo,
                                         'arguments' => $args,
                                         'service'   => $v['service'] ];
Severity: Major
Found in src/DependencyInjection/Configuration.php - About 30 mins to fix

There are no issues that match your filters.

Category
Status