Code Duplication    Length = 15-16 lines in 2 locations

src/Channel.php 2 locations

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