Code Duplication    Length = 11-11 lines in 2 locations

PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Parser/MethodFrameParserTrait.php 2 locations

@@ 169-179 (lines=11) @@
166
167
                // method "channel.flow"
168
            }
169
            if ($method === 20) {
170
                $frame = new Channel\ChannelFlowFrame();
171
172
                // consume "active" (bit)
173
                $frame->active = \ord($this->buffer) !== 0;
174
                $this->buffer = mb_orig_substr($this->buffer, 1);
175
176
                return $frame;
177
178
                // method "channel.flow-ok"
179
            }
180
            if ($method === 21) {
181
                $frame = new Channel\ChannelFlowOkFrame();
182
@@ 180-190 (lines=11) @@
177
178
                // method "channel.flow-ok"
179
            }
180
            if ($method === 21) {
181
                $frame = new Channel\ChannelFlowOkFrame();
182
183
                // consume "active" (bit)
184
                $frame->active = \ord($this->buffer) !== 0;
185
                $this->buffer = mb_orig_substr($this->buffer, 1);
186
187
                return $frame;
188
189
                // method "channel.close"
190
            }
191
            if ($method === 40) {
192
                $frame = new Channel\ChannelCloseFrame();
193