@@ -196,7 +196,7 @@ |
||
| 196 | 196 | |
| 197 | 197 | $loop->addPeriodicTimer( |
| 198 | 198 | Constants::TIME_TICK_INTERVAL, |
| 199 | - function () use ($closure, $messageHydrate, $loop) { |
|
| 199 | + function() use ($closure, $messageHydrate, $loop) { |
|
| 200 | 200 | $transporter = new StreamCommandCallTransporter( |
| 201 | 201 | [ |
| 202 | 202 | 'command' => Constants::COMMAND_XRANGE, |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function setUp() : void |
| 22 | 22 | { |
| 23 | - $connector = \Mockery::mock(ClientRedisStreamPhpInterface::class); |
|
| 23 | + $connector = \Mockery::mock(ClientRedisStreamPhpInterface::class); |
|
| 24 | 24 | $this->client = new Client($connector); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | { |
| 7 | 7 | |
| 8 | 8 | public function handle($payload) { |
| 9 | - echo 'привет я Demo Consumer - ' . $payload; |
|
| 9 | + echo 'привет я Demo Consumer - ' . $payload; |
|
| 10 | 10 | } |
| 11 | 11 | } |
| 12 | 12 | \ No newline at end of file |
@@ -45,11 +45,11 @@ |
||
| 45 | 45 | |
| 46 | 46 | $this->tcpServer = new \React\Socket\TcpServer($ip . ':' . $port); |
| 47 | 47 | |
| 48 | - $this->tcpServer->on('connection', function (ConnectionInterface $connection) { |
|
| 48 | + $this->tcpServer->on('connection', function(ConnectionInterface $connection) { |
|
| 49 | 49 | |
| 50 | 50 | $connection->pipe($connection); |
| 51 | 51 | |
| 52 | - $connection->on('data', function ($payload) { |
|
| 52 | + $connection->on('data', function($payload) { |
|
| 53 | 53 | foreach ($this->consumers as $consumer) { |
| 54 | 54 | $consumer->handle($payload); |
| 55 | 55 | } |