laravel/framework

View on GitHub
src/Illuminate/Log/LogManager.php

Summary

Maintainability
C
1 day
Test Coverage

LogManager has 45 functions (exceeds 20 allowed). Consider refactoring.
Open

class LogManager implements LoggerInterface
{
    use ParsesLogConfiguration;

    /**
Severity: Minor
Found in src/Illuminate/Log/LogManager.php - About 6 hrs to fix

    File LogManager.php has 375 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace Illuminate\Log;
    
    use Closure;
    Severity: Minor
    Found in src/Illuminate/Log/LogManager.php - About 5 hrs to fix

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

          protected function createMonologDriver(array $config)
          {
              if (! is_a($config['handler'], HandlerInterface::class, true)) {
                  throw new InvalidArgumentException(
                      $config['handler'].' must be an instance of '.HandlerInterface::class
      Severity: Minor
      Found in src/Illuminate/Log/LogManager.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status