@@ -84,7 +84,7 @@ |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | $this->isAuthenticated = false; |
87 | - $this->connection->onData(function ($msg) { |
|
87 | + $this->connection->onData(function($msg) { |
|
88 | 88 | $this->handleIrcMessage($msg); |
89 | 89 | }); |
90 | 90 | $this->connection->open(); |
@@ -47,20 +47,20 @@ |
||
47 | 47 | $dns = $dnsResolverFactory->createCached('1.1.1.1', $this->loop); |
48 | 48 | $dnsConnector = new \React\Socket\DnsConnector($tcpConnector, $dns); |
49 | 49 | |
50 | - $dnsConnector->connect($this->server)->then(function (ConnectionInterface $connection) { |
|
50 | + $dnsConnector->connect($this->server)->then(function(ConnectionInterface $connection) { |
|
51 | 51 | $this->connection = $connection; |
52 | 52 | $this->connected = true; |
53 | 53 | |
54 | - $this->connection->on('data', function ($data) { |
|
54 | + $this->connection->on('data', function($data) { |
|
55 | 55 | foreach ($this->messageParser->parse($data) as $msg) { |
56 | 56 | $this->handleMessage($msg); |
57 | 57 | } |
58 | 58 | }); |
59 | 59 | |
60 | - $this->connection->on('close', function () { |
|
60 | + $this->connection->on('close', function() { |
|
61 | 61 | $this->connected = false; |
62 | 62 | }); |
63 | - $this->connection->on('end', function () { |
|
63 | + $this->connection->on('end', function() { |
|
64 | 64 | $this->connected = false; |
65 | 65 | }); |
66 | 66 | }); |