rostenkowski/doctrine

View on GitHub

Showing 3 of 3 total issues

Method loadConfiguration has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function loadConfiguration()
{
$builder = $this->getContainerBuilder();
 
$this->config = $config = Helpers::expand($this->validateConfig($this->defaults), $builder->parameters);
Severity: Minor
Found in src/Doctrine/Extension.php - About 1 hr to fix

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

    public function beforeCompile()
    {
    $config = $this->getConfig();
    $builder = $this->getContainerBuilder();
     
     
    Severity: Minor
    Found in src/Doctrine/Extension.php - About 1 hr to fix

      Function startQuery has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

      public function startQuery($sql, array $params = NULL, array $types = NULL)
      {
      $this->start = (float) microtime(true);
       
      $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
      Severity: Minor
      Found in src/Doctrine/Debugger/TracyBar.php - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language