Passed
Pull Request — master (#11)
by Sergey
02:20
created
src/Stream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
tests/Unit/ClientTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Listeners/DemoListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
 
8 8
     public function handle($payload) {
9
-        echo 'привет я DemoListener - ' .  $payload;
9
+        echo 'привет я DemoListener - ' . $payload;
10 10
     }
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/Listeners/Manager/TcpListenerEventManager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * @return void
17 17
      */
18 18
     public function setListeners(array $listeners): void {
19
-       $this->listeners = $listeners;
19
+        $this->listeners = $listeners;
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
src/Server/TcpServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@
 block discarded – undo
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->listeners as $listener) {
54 54
                     $listener->handle($payload);
55 55
                 }
Please login to merge, or discard this patch.