mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
b9b07c9664
commit
70416dcb18
@@ -3,11 +3,11 @@
|
||||
namespace App\Server\Connections;
|
||||
|
||||
use App\Contracts\ConnectionManager as ConnectionManagerContract;
|
||||
use App\Contracts\LoggerRepository;
|
||||
use App\Contracts\StatisticsCollector;
|
||||
use App\Contracts\SubdomainGenerator;
|
||||
use App\Http\QueryParameters;
|
||||
use App\Server\Exceptions\NoFreePortAvailable;
|
||||
use App\Contracts\LoggerRepository;
|
||||
use Ratchet\ConnectionInterface;
|
||||
use React\EventLoop\LoopInterface;
|
||||
use React\Socket\Server;
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Server;
|
||||
|
||||
use App\Contracts\ConnectionManager as ConnectionManagerContract;
|
||||
use App\Contracts\DomainRepository;
|
||||
use App\Contracts\LoggerRepository;
|
||||
use App\Contracts\StatisticsCollector;
|
||||
use App\Contracts\StatisticsRepository;
|
||||
use App\Contracts\SubdomainGenerator;
|
||||
@@ -39,7 +40,6 @@ use App\Server\Http\Controllers\ControlMessageController;
|
||||
use App\Server\Http\Controllers\TunnelMessageController;
|
||||
use App\Server\Http\Router;
|
||||
use App\Server\LoggerRepository\NullLogger;
|
||||
use App\Contracts\LoggerRepository;
|
||||
use App\Server\StatisticsCollector\DatabaseStatisticsCollector;
|
||||
use App\Server\StatisticsRepository\DatabaseStatisticsRepository;
|
||||
use App\Server\SubdomainRepository\DatabaseSubdomainRepository;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace App\Server\Http\Controllers\Admin;
|
||||
|
||||
use App\Contracts\LoggerRepository;
|
||||
use App\Contracts\UserRepository;
|
||||
use App\Server\Configuration;
|
||||
use Illuminate\Http\Request;
|
||||
use Ratchet\ConnectionInterface;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace App\Server\Http\Controllers\Admin;
|
||||
|
||||
use App\Contracts\LoggerRepository;
|
||||
use App\Contracts\UserRepository;
|
||||
use App\Server\Configuration;
|
||||
use Illuminate\Http\Request;
|
||||
use Ratchet\ConnectionInterface;
|
||||
|
||||
@@ -35,6 +35,7 @@ class Router implements HttpServerInterface
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @throws \UnexpectedValueException If a controller is not \Ratchet\Http\HttpServerInterface
|
||||
*/
|
||||
public function onOpen(ConnectionInterface $conn, RequestInterface $request = null)
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Server\LoggerRepository;
|
||||
|
||||
use App\Contracts\LoggerRepository;
|
||||
use App\Contracts\UserRepository;
|
||||
use Clue\React\SQLite\DatabaseInterface;
|
||||
use App\Contracts\LoggerRepository;
|
||||
use Clue\React\SQLite\Result;
|
||||
use React\Promise\Deferred;
|
||||
use React\Promise\PromiseInterface;
|
||||
@@ -45,7 +45,7 @@ class DatabaseLogger implements LoggerRepository
|
||||
$deferred = new Deferred();
|
||||
|
||||
$this->database
|
||||
->query("
|
||||
->query('
|
||||
SELECT
|
||||
logs.id AS log_id,
|
||||
logs.subdomain,
|
||||
@@ -53,7 +53,7 @@ class DatabaseLogger implements LoggerRepository
|
||||
FROM logs
|
||||
INNER JOIN users
|
||||
ON users.id = logs.user_id
|
||||
WHERE logs.subdomain = :subdomain", ['subdomain' => $subdomain])
|
||||
WHERE logs.subdomain = :subdomain', ['subdomain' => $subdomain])
|
||||
->then(function (Result $result) use ($deferred) {
|
||||
$deferred->resolve($result->rows);
|
||||
});
|
||||
@@ -66,14 +66,14 @@ class DatabaseLogger implements LoggerRepository
|
||||
$deferred = new Deferred();
|
||||
|
||||
$this->database
|
||||
->query("
|
||||
->query('
|
||||
SELECT
|
||||
logs.id AS log_id,
|
||||
logs.subdomain,
|
||||
users.*
|
||||
FROM logs
|
||||
INNER JOIN users
|
||||
ON users.id = logs.user_id")
|
||||
ON users.id = logs.user_id')
|
||||
->then(function (Result $result) use ($deferred) {
|
||||
$deferred->resolve($result->rows);
|
||||
});
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace App\Server\LoggerRepository;
|
||||
|
||||
use App\Contracts\LoggerRepository;
|
||||
use Clue\React\SQLite\DatabaseInterface;
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
class NullLogger implements LoggerRepository
|
||||
|
||||
Reference in New Issue
Block a user