Code Duplication    Length = 8-8 lines in 2 locations

src/TreeHouse/Queue/Amqp/Driver/Amqp/Queue.php 2 locations

@@ 169-176 (lines=8) @@
166
    /**
167
     * @inheritdoc
168
     */
169
    public function get($flags = null)
170
    {
171
        if (false !== $envelope = $this->delegate->get(self::convertToDelegateFlags($flags))) {
172
            $envelope = new Envelope($envelope);
173
        }
174
175
        return $envelope;
176
    }
177
178
    /**
179
     * @inheritdoc
@@ 181-188 (lines=8) @@
178
    /**
179
     * @inheritdoc
180
     */
181
    public function consume(callable $callback, $flags = null, $consumerTag = null)
182
    {
183
        $wrapper = function (\AMQPEnvelope $envelope) use ($callback) {
184
            return $callback(new Envelope($envelope));
185
        };
186
187
        $this->delegate->consume($wrapper, self::convertToDelegateFlags($flags), $consumerTag);
188
    }
189
190
    /**
191
     * @inheritdoc