Apply fixes from StyleCI

This commit is contained in:
Marcel Pociot
2020-09-07 18:52:38 +00:00
committed by StyleCI Bot
parent e857de8498
commit 32fd4ba8ea
3 changed files with 5 additions and 7 deletions

View File

@@ -3,10 +3,10 @@
namespace App\Client; namespace App\Client;
use App\Client\Http\HttpClient; use App\Client\Http\HttpClient;
use React\Socket\Connector;
use function Ratchet\Client\connect; use function Ratchet\Client\connect;
use Ratchet\Client\WebSocket; use Ratchet\Client\WebSocket;
use React\EventLoop\LoopInterface; use React\EventLoop\LoopInterface;
use React\Socket\Connector;
class ProxyManager class ProxyManager
{ {
@@ -59,7 +59,7 @@ class ProxyManager
$proxyConnection->send($data); $proxyConnection->send($data);
}); });
$proxyConnection->on('message', function ($message) use ($proxyConnection, $connection) { $proxyConnection->on('message', function ($message) use ($connection) {
$connection->write($message); $connection->write($message);
}); });
}); });

View File

@@ -2,7 +2,6 @@
namespace App\Server\Connections; namespace App\Server\Connections;
use Evenement\EventEmitterTrait;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;
use React\Socket\Server; use React\Socket\Server;
@@ -81,7 +80,6 @@ class TcpControlConnection extends ControlConnection
$requestId = uniqid(); $requestId = uniqid();
$sharedServer->on('connection', function (\React\Socket\ConnectionInterface $connection) use ($requestId) { $sharedServer->on('connection', function (\React\Socket\ConnectionInterface $connection) use ($requestId) {
$this->proxyConnection = $connection; $this->proxyConnection = $connection;
$this->once('tcp_proxy_ready_'.$requestId, function (ConnectionInterface $proxy) use ($connection) { $this->once('tcp_proxy_ready_'.$requestId, function (ConnectionInterface $proxy) use ($connection) {