nopolabs/yabot

View on GitHub
src/Plugin/PluginMatcher.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        string $pluginId,
        bool $isBot = null,
        array $channels,
        array $users,
        LoggerInterface $logger = null)
Severity: Minor
Found in src/Plugin/PluginMatcher.php - About 35 mins to fix

    Possibly zero references to use statement for classlike/namespace Message (\Nopolabs\Yabot\Message\Message)
    Open

    use Nopolabs\Yabot\Message\Message;
    Severity: Minor
    Found in src/Plugin/PluginMatcher.php by phan

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

        public function __construct(
    Severity: Minor
    Found in src/Plugin/PluginMatcher.php by phan

    Required argument follows optional
    Open

        public function __construct(
    Severity: Info
    Found in src/Plugin/PluginMatcher.php by phan

    Possibly zero references to use statement for classlike/namespace LogLevel (\Psr\Log\LogLevel)
    Open

    use Psr\Log\LogLevel;
    Severity: Minor
    Found in src/Plugin/PluginMatcher.php by phan

    There must be one blank line after the namespace declaration
    Open

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

    The closing parenthesis of a multi-line function declaration must be on a new line
    Open

            LoggerInterface $logger = null)
    Severity: Minor
    Found in src/Plugin/PluginMatcher.php by phpcodesniffer

    The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
    Open

        {
    Severity: Minor
    Found in src/Plugin/PluginMatcher.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status