Code Duplication    Length = 8-8 lines in 2 locations

src/Redis/Redis.php 2 locations

@@ 275-282 (lines=8) @@
272
    /**
273
     * @internal
274
     */
275
    protected function handleStart()
276
    {
277
        if ($this->stream !== null)
278
        {
279
            $this->stream->on('data', [ $this, 'handleData' ]);
280
            $this->stream->on('close', [ $this, 'stop' ]);
281
        }
282
    }
283
284
    /**
285
     * @internal
@@ 287-294 (lines=8) @@
284
    /**
285
     * @internal
286
     */
287
    protected function handleStop()
288
    {
289
        if ($this->stream !== null)
290
        {
291
            $this->stream->removeListener('data', [ $this, 'handleData' ]);
292
            $this->stream->removeListener('close', [ $this, 'stop' ]);
293
        }
294
    }
295
296
    /**
297
     * @internal