components-web-app/api-components-bundle

View on GitHub
src/DependencyInjection/SilverbackApiComponentsExtension.php

Summary

Maintainability
C
1 day
Test Coverage

Method load has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function load(array $configs, ContainerBuilder $container): void
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

Severity: Major
Found in src/DependencyInjection/SilverbackApiComponentsExtension.php - About 2 hrs to fix

    File SilverbackApiComponentsExtension.php has 273 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /*
     * This file is part of the Silverback API Components Bundle Project
     *
    Severity: Minor
    Found in src/DependencyInjection/SilverbackApiComponentsExtension.php - About 2 hrs to fix

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

          private function prependApiPlatformConfig(ContainerBuilder $container, array $config): void
          {
              $srcBase = __DIR__ . '/..';
              $mappingPaths = [$srcBase . '/Entity/Core'];
              $this->appendMappingPaths($mappingPaths, $srcBase, 'uploadable');
      Severity: Minor
      Found in src/DependencyInjection/SilverbackApiComponentsExtension.php - About 1 hr to fix

        Method setMailerServiceArguments has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function setMailerServiceArguments(ContainerBuilder $container, array $config): void
            {
                $definition = $container->getDefinition(UserMailer::class);
                $definition->setArgument(
                    '$context',
        Severity: Minor
        Found in src/DependencyInjection/SilverbackApiComponentsExtension.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status