stk2k/stream-logger

View on GitHub
src/Formatter/DefaultFormatter.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method format has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function format($level, $message, array $context, string $file, int $line, DateTime $time): string
    {
        return $this->processor->process($this->format, function($keyword) use($level, $message, $context, $file, $line, $time){
            switch($keyword){
                case 'LEVEL':
Severity: Minor
Found in src/Formatter/DefaultFormatter.php - About 1 hr to fix

    Method format has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function format($level, $message, array $context, string $file, int $line, DateTime $time): string
    Severity: Minor
    Found in src/Formatter/DefaultFormatter.php - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status