nopolabs/yabot

View on GitHub
src/Helpers/LogTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method emergency from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->emergency($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method critical from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->critical($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Parameter $log has undeclared type ?\Psr\Log\LoggerInterface
Open

    protected function setLog(LoggerInterface $log = null)
Severity: Minor
Found in src/Helpers/LogTrait.php by phan

Call to method __construct from undeclared class \Psr\Log\NullLogger
Open

        $this->log = $log ?? new NullLogger();
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method info from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->info($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method warning from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->warning($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method alert from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->alert($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method error from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->error($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method log from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->log($level, $message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Return type of getLog() is undeclared type \Psr\Log\LoggerInterface
Open

    protected function getLog() : LoggerInterface
Severity: Minor
Found in src/Helpers/LogTrait.php by phan

Call to method notice from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->notice($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

Call to method debug from undeclared class \Psr\Log\LoggerInterface
Open

        $this->getLog()->debug($message, $context);
Severity: Critical
Found in src/Helpers/LogTrait.php by phan

There must be one blank line after the namespace declaration
Open

namespace Nopolabs\Yabot\Helpers;
Severity: Minor
Found in src/Helpers/LogTrait.php by phpcodesniffer

Expected 1 newline at end of file; 0 found
Open

}
Severity: Minor
Found in src/Helpers/LogTrait.php by phpcodesniffer

There are no issues that match your filters.

Category
Status