Code Duplication    Length = 15-16 lines in 2 locations

src/Channel.php 2 locations

@@ 92-106 (lines=15) @@
89
     *
90
     * @return ChannelInterface
91
     */
92
    public function declareQueue(Queue $queue) : ChannelInterface
93
    {
94
        $this->channel->queue_declare(
95
            $queue->getQueueName(),
96
            $queue->isPassive(),
97
            $queue->isDurable(),
98
            $queue->isExclusive(),
99
            $queue->isAutoDelete(),
100
            $queue->isNoWait(),
101
            $queue->getArguments(),
102
            $queue->getTicket()
103
        );
104
105
        return $this;
106
    }
107
108
    public function bindQueue(Queue $queue) : ChannelInterface
109
    {
@@ 122-137 (lines=16) @@
119
        return $this;
120
    }
121
122
    public function declareExchange(Exchange $exchange) : ChannelInterface
123
    {
124
        $this->channel->exchange_declare(
125
            $exchange->getExchange(),
126
            $exchange->getType(),
127
            $exchange->isPassive(),
128
            $exchange->isDurable(),
129
            $exchange->isAutoDelete(),
130
            $exchange->isInternal(),
131
            $exchange->isNoWait(),
132
            $exchange->getArguments(),
133
            $exchange->getTicket()
134
        );
135
136
        return $this;
137
    }
138
139
    /**
140
     * @return array