@@ -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 | }); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | $this->isAuthenticated = false; |
84 | - $this->connection->onData(function ($msg) { |
|
84 | + $this->connection->onData(function($msg) { |
|
85 | 85 | $this->handleIrcMessage($msg); |
86 | 86 | }); |
87 | 87 | $this->connection->open(); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | public function say(string $target, string $message): void |
127 | 127 | { |
128 | 128 | foreach (explode("\n", $message) as $msg) { |
129 | - $this->send("PRIVMSG $target :" . trim($msg)); |
|
129 | + $this->send("PRIVMSG $target :".trim($msg)); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 |