Completed
Pull Request — master (#5)
by Jeroen
01:31
created
src/IrcClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/IrcConnection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,20 +47,20 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.