nopolabs/yabot

View on GitHub
src/Helpers/LoopTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Property \Nopolabs\Yabot\Helpers\LoopTrait->loop has undeclared type \React\EventLoop\LoopInterface
Open

    private $loop;
Severity: Minor
Found in src/Helpers/LoopTrait.php by phan

Return type of getLoop() is undeclared type \React\EventLoop\LoopInterface
Open

    protected function getLoop() : LoopInterface
Severity: Minor
Found in src/Helpers/LoopTrait.php by phan

Call to method addTimer from undeclared class \React\EventLoop\LoopInterface
Open

        $this->getLoop()->addTimer($interval, $this->callable($function));
Severity: Critical
Found in src/Helpers/LoopTrait.php by phan

Parameter $loop has undeclared type \React\EventLoop\LoopInterface
Open

    protected function setLoop(LoopInterface $loop)
Severity: Minor
Found in src/Helpers/LoopTrait.php by phan

Call to method cancelTimer from undeclared class \React\EventLoop\LoopInterface
Open

        $this->getLoop()->cancelTimer($timer);
Severity: Critical
Found in src/Helpers/LoopTrait.php by phan

Call to method addPeriodicTimer from undeclared class \React\EventLoop\LoopInterface
Open

        $this->getLoop()->addPeriodicTimer($interval, $this->callable($function));
Severity: Critical
Found in src/Helpers/LoopTrait.php by phan

Parameter $timer has undeclared type \React\EventLoop\Timer\TimerInterface
Open

    protected function cancelTimer(TimerInterface $timer)
Severity: Minor
Found in src/Helpers/LoopTrait.php by phan

Expected 1 space after FUNCTION keyword; 0 found
Open

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

Expected 1 newline at end of file; 0 found
Open

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

There are no issues that match your filters.

Category
Status