pheature-flags/symfony-toggle

View on GitHub

Showing 2 of 2 total issues

Method process has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function process(ContainerBuilder $container): void
    {
        /** @var array<array<mixed>> $pheatureFlagsConfig */
        $pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
        $mergedConfig = array_replace(...$pheatureFlagsConfig);
Severity: Minor
Found in src/DependencyInjection/FeatureFinderFactoryPass.php - About 1 hr to fix

    Method addToggles has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function addToggles(ArrayNodeDefinition $rootNode): void
        {
            /** @phpstan-ignore-next-line */
            $rootNode
                ->children()
    Severity: Minor
    Found in src/DependencyInjection/Configuration.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language