nopolabs/yabot

View on GitHub

Showing 285 of 286 total issues

There must be one blank line after the namespace declaration
Open

namespace Nopolabs\Yabot\Plugin;

Blank line found at end of control structure
Open


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

Blank line found at start of control structure
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

        $onRejected = $onRejected ?? function($reason) { $this->logRejection($reason); };
Severity: Minor
Found in src/Guzzle/Guzzle.php by phpcodesniffer

Each PHP statement must be on a line by itself
Open

        $onRejected = $onRejected ?? function($reason) { $this->logRejection($reason); };
Severity: Minor
Found in src/Guzzle/Guzzle.php by phpcodesniffer

There must be one blank line after the namespace declaration
Open

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

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

There must be one blank line after the namespace declaration
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

            $this->addPeriodicTimer(3600, function() {
Severity: Minor
Found in src/Yabot.php by phpcodesniffer

There must be one blank line after the namespace declaration
Open

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

There must be one blank line after the namespace declaration
Open

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

There must be one blank line after the namespace declaration
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

        $this->realTimeClient->getAuthedUser()->then(function(User $user) use ($authedUserUpdated) {
Severity: Minor
Found in src/Slack/Client.php by phpcodesniffer

There must be one blank line after the namespace declaration
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

        return function() use ($function) {
Severity: Minor
Found in src/Helpers/LoopTrait.php by phpcodesniffer

There must be one blank line after the namespace declaration
Open

namespace Nopolabs\Yabot\Slack;

Expected 1 space after FUNCTION keyword; 0 found
Open

        $this->realTimeClient->getUsers()->then(function(array $users) {
Severity: Minor
Found in src/Slack/Client.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

        $this->realTimeClient->getChannels()->then(function(array $channels) {
Severity: Minor
Found in src/Slack/Client.php by phpcodesniffer

Blank line found at start of control structure
Open

        if ($interval = $this->get('connection_monitor.interval')) {
Severity: Minor
Found in src/Yabot.php by phpcodesniffer

There must be one blank line after the namespace declaration
Open

namespace Nopolabs\Yabot\Guzzle;
Severity: Minor
Found in src/Guzzle/Guzzle.php by phpcodesniffer
Severity
Category
Status
Source
Language