@@ -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(); |
@@ -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 | var_dump($msg); |
@@ -68,20 +68,20 @@ discard block |
||
68 | 68 | $dns = $dnsResolverFactory->createCached('1.1.1.1', $this->loop); |
69 | 69 | $dnsConnector = new \React\Socket\DnsConnector($tcpConnector, $dns); |
70 | 70 | |
71 | - $dnsConnector->connect($this->server)->then(function (ConnectionInterface $connection) { |
|
71 | + $dnsConnector->connect($this->server)->then(function(ConnectionInterface $connection) { |
|
72 | 72 | $this->connection = $connection; |
73 | 73 | $this->connected = true; |
74 | 74 | |
75 | - $this->connection->on('data', function ($data) { |
|
75 | + $this->connection->on('data', function($data) { |
|
76 | 76 | foreach ($this->messageParser->parse($data) as $msg) { |
77 | 77 | $this->handleMessage($msg); |
78 | 78 | } |
79 | 79 | }); |
80 | 80 | |
81 | - $this->connection->on('close', function () { |
|
81 | + $this->connection->on('close', function() { |
|
82 | 82 | $this->connected = false; |
83 | 83 | }); |
84 | - $this->connection->on('end', function () { |
|
84 | + $this->connection->on('end', function() { |
|
85 | 85 | $this->connected = false; |
86 | 86 | }); |
87 | 87 | }); |