Completed
Push — master ( 06e543...db2d5c )
by Jeroen
01:57
created
src/IrcConnection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/IrcClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.