Code Duplication    Length = 9-9 lines in 2 locations

PhpAmqpLib/Channel/AbstractChannel.php 2 locations

@@ 91-99 (lines=9) @@
88
89
        $this->protocolVersion = self::getProtocolVersion();
90
        switch ($this->protocolVersion) {
91
            case self::PROTOCOL_091:
92
                self::$PROTOCOL_CONSTANTS_CLASS = 'PhpAmqpLib\Wire\Constants091';
93
                $c = self::$PROTOCOL_CONSTANTS_CLASS;
94
                $this->debug = new DebugHelper($c);
95
                $this->amqp_protocol_header = $c::$AMQP_PROTOCOL_HEADER;
96
                $this->protocolWriter = new Protocol091();
97
                $this->waitHelper = new Wait091();
98
                $this->methodMap = new MethodMap091();
99
                break;
100
            case self::PROTOCOL_080:
101
                self::$PROTOCOL_CONSTANTS_CLASS = 'PhpAmqpLib\Wire\Constants080';
102
                $c = self::$PROTOCOL_CONSTANTS_CLASS;
@@ 100-108 (lines=9) @@
97
                $this->waitHelper = new Wait091();
98
                $this->methodMap = new MethodMap091();
99
                break;
100
            case self::PROTOCOL_080:
101
                self::$PROTOCOL_CONSTANTS_CLASS = 'PhpAmqpLib\Wire\Constants080';
102
                $c = self::$PROTOCOL_CONSTANTS_CLASS;
103
                $this->debug = new DebugHelper($c);
104
                $this->amqp_protocol_header = $c::$AMQP_PROTOCOL_HEADER;
105
                $this->protocolWriter = new Protocol080();
106
                $this->waitHelper = new Wait080();
107
                $this->methodMap = new MethodMap080();
108
                break;
109
            default:
110
                throw new AMQPRuntimeException(sprintf(
111
                    'Protocol: %s not implemented.',