Code Duplication    Length = 8-8 lines in 2 locations

src/Redis/Redis.php 2 locations

@@ 225-232 (lines=8) @@
222
    /**
223
     * @internal
224
     */
225
    protected function handleStart()
226
    {
227
        if ($this->stream !== null)
228
        {
229
            $this->stream->on('data', [ $this, 'handleData' ]);
230
            $this->stream->on('close', [ $this, 'stop' ]);
231
        }
232
    }
233
234
    /**
235
     * @internal
@@ 237-244 (lines=8) @@
234
    /**
235
     * @internal
236
     */
237
    protected function handleStop()
238
    {
239
        if ($this->stream !== null)
240
        {
241
            $this->stream->removeListener('data', [ $this, 'handleData' ]);
242
            $this->stream->removeListener('close', [ $this, 'stop' ]);
243
        }
244
    }
245
246
    /**
247
     * @internal