nopolabs/yabot

View on GitHub
src/Http/HttpServer.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function __construct($port, LoopInterface $loop, LoggerInterface $logger)
Severity: Minor
Found in src/Http/HttpServer.php by phan

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

    public function __construct($port, LoopInterface $loop, LoggerInterface $logger)
Severity: Minor
Found in src/Http/HttpServer.php by phan

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

        $this->logger->warning($exception->getMessage());
Severity: Critical
Found in src/Http/HttpServer.php by phan

Parameter $response has undeclared type \React\Http\Response
Open

    public function request(HttpRequest $request, HttpResponse $response)
Severity: Minor
Found in src/Http/HttpServer.php by phan

Call to method on from undeclared class \React\Http\Server
Open

        $this->http->on('request', [$this, 'request']);
Severity: Critical
Found in src/Http/HttpServer.php by phan

Parameter $request has undeclared type \React\Http\Request
Open

    public function request(HttpRequest $request, HttpResponse $response)
Severity: Minor
Found in src/Http/HttpServer.php by phan

Call to method __construct from undeclared class \React\Socket\Server
Open

        $this->socket = new SocketServer($port, $loop);
Severity: Critical
Found in src/Http/HttpServer.php by phan

Call to method on from undeclared class \React\Http\Server
Open

        $this->http->on('error', [$this, 'error']);
Severity: Critical
Found in src/Http/HttpServer.php by phan

Call to method on from undeclared class \React\Socket\Server
Open

        $this->socket->on('error', [$this, 'error']);
Severity: Critical
Found in src/Http/HttpServer.php by phan

Call to method __construct from undeclared class \React\Http\Server
Open

        $this->http = new Server($this->socket);
Severity: Critical
Found in src/Http/HttpServer.php by phan

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

        $this->logger->warning($exception->getTraceAsString());
Severity: Critical
Found in src/Http/HttpServer.php by phan

There are no issues that match your filters.

Category
Status