propelorm/Propel2

View on GitHub
src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php

Summary

Maintainability
C
1 day
Test Coverage

StandardServiceContainer has 33 functions (exceeds 20 allowed). Consider refactoring.
Open

class StandardServiceContainer implements ServiceContainerInterface
{
    /**
     * Expected version of the configuration file.
     *
Severity: Minor
Found in src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php - About 4 hrs to fix

    File StandardServiceContainer.php has 289 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * MIT License. This file is part of the Propel package.
     * For the full copyright and license information, please view the LICENSE
    Severity: Minor
    Found in src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php - About 2 hrs to fix

      Method buildLogger has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function buildLogger(string $name = 'defaultLogger'): LoggerInterface
          {
              if (!isset($this->loggerConfigurations[$name])) {
                  return $name !== 'defaultLogger' ? $this->getLogger() : new NullLogger();
              }
      Severity: Minor
      Found in src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status