@@ -74,10 +74,10 @@ |
||
74 | 74 | |
75 | 75 | $this->loop = \React\EventLoop\Factory::create(); |
76 | 76 | $factory = new \React\Datagram\Factory($this->loop); |
77 | - $factory->createServer($this->ip.':'.$this->port)->then(function (Socket $server) { |
|
77 | + $factory->createServer($this->ip . ':' . $this->port)->then(function(Socket $server) { |
|
78 | 78 | $this->dispatch(Events::SERVER_START, new ServerStartEvent($server)); |
79 | 79 | $server->on('message', [$this, 'onMessage']); |
80 | - })->otherwise(function (\Exception $exception) { |
|
80 | + })->otherwise(function(\Exception $exception) { |
|
81 | 81 | $this->dispatch(Events::SERVER_START_FAIL, new ServerExceptionEvent($exception)); |
82 | 82 | }); |
83 | 83 | } |