Code Duplication    Length = 10-10 lines in 2 locations

src/Loop/Model/SelectLoop.php 2 locations

@@ 113-122 (lines=10) @@
110
     * @override
111
     * @inheritDoc
112
     */
113
    public function addReadStream($stream, callable $listener)
114
    {
115
        $key = (int) $stream;
116
117
        if (!isset($this->readStreams[$key]))
118
        {
119
            $this->readStreams[$key] = $stream;
120
            $this->readListeners[$key] = $listener;
121
        }
122
    }
123
124
    /**
125
     * @override
@@ 128-137 (lines=10) @@
125
     * @override
126
     * @inheritDoc
127
     */
128
    public function addWriteStream($stream, callable $listener)
129
    {
130
        $key = (int) $stream;
131
132
        if (!isset($this->writeStreams[$key]))
133
        {
134
            $this->writeStreams[$key] = $stream;
135
            $this->writeListeners[$key] = $listener;
136
        }
137
    }
138
139
    /**
140
     * @override