@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->messageQueue = []; |
50 | 50 | |
51 | 51 | if ($this->floodProtected) { |
52 | - $this->loop->addPeriodicTimer($options->floodProtectionDelay / 1000, function () { |
|
52 | + $this->loop->addPeriodicTimer($options->floodProtectionDelay / 1000, function() { |
|
53 | 53 | if ($msg = array_shift($this->messageQueue)) { |
54 | 54 | $this->connection->write($msg); |
55 | 55 | } |
@@ -67,20 +67,20 @@ discard block |
||
67 | 67 | $dns = $dnsResolverFactory->createCached('1.1.1.1', $this->loop); |
68 | 68 | $dnsConnector = new \React\Socket\DnsConnector($tcpConnector, $dns); |
69 | 69 | |
70 | - $dnsConnector->connect($this->server)->then(function (ConnectionInterface $connection) { |
|
70 | + $dnsConnector->connect($this->server)->then(function(ConnectionInterface $connection) { |
|
71 | 71 | $this->connection = $connection; |
72 | 72 | $this->connected = true; |
73 | 73 | |
74 | - $this->connection->on('data', function ($data) { |
|
74 | + $this->connection->on('data', function($data) { |
|
75 | 75 | foreach ($this->messageParser->parse($data) as $msg) { |
76 | 76 | $this->handleMessage($msg); |
77 | 77 | } |
78 | 78 | }); |
79 | 79 | |
80 | - $this->connection->on('close', function () { |
|
80 | + $this->connection->on('close', function() { |
|
81 | 81 | $this->connected = false; |
82 | 82 | }); |
83 | - $this->connection->on('end', function () { |
|
83 | + $this->connection->on('end', function() { |
|
84 | 84 | $this->connected = false; |
85 | 85 | }); |
86 | 86 | }); |