stk2k/stream-logger

View on GitHub

Showing 7 of 16 total issues

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 __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

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

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

          private function addMessage($level, string $message, array $context, string $file, int $line, DateTime $time)
      Severity: Minor
      Found in src/BufferedStreamTrait.php - About 45 mins 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/LogFormatterInterface.php - About 45 mins to fix

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

              public function writeln($level, $message, $context, $file, $line, DateTime $time)
          Severity: Minor
          Found in src/Stream.php - About 45 mins 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

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

                  public function format($level, $message, array $context, string $file, int $line): string
              Severity: Minor
              Found in demo/example3.php - About 35 mins to fix
                Severity
                Category
                Status
                Source
                Language