Code Duplication    Length = 9-9 lines in 2 locations

src/Amqp/AmqpMessageQueue.php 2 locations

@@ 89-97 (lines=9) @@
86
        }, AMQP_NOPARAM, Uuid::uuid4());
87
    }
88
89
    private function ackMessage(\AMQPEnvelope $envelope)
90
    {
91
        $this->logger->debug('ACK message', [
92
            'correlation_id' => $envelope->getCorrelationId(),
93
            'body' => $envelope->getBody()
94
        ]);
95
96
        $this->queue->ack($envelope->getDeliveryTag(), AMQP_NOPARAM);
97
    }
98
99
    private function nackMessage(\AMQPEnvelope $envelope)
100
    {
@@ 99-107 (lines=9) @@
96
        $this->queue->ack($envelope->getDeliveryTag(), AMQP_NOPARAM);
97
    }
98
99
    private function nackMessage(\AMQPEnvelope $envelope)
100
    {
101
        $this->logger->debug('NACK message', [
102
            'correlation_id' => $envelope->getCorrelationId(),
103
            'body' => $envelope->getBody()
104
        ]);
105
106
        $this->queue->nack($envelope->getDeliveryTag(), AMQP_NOPARAM);
107
    }
108
}
109