Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 74-81 (lines=8) @@
71
    /**
72
     * @inheritdoc
73
     */
74
    public function setHost($host)
75
    {
76
        try {
77
            return $this->delegate->setHost($host);
78
        } catch (\AMQPConnectionException $e) {
79
            throw new ConnectionException($e->getMessage(), $e->getCode(), $e);
80
        }
81
    }
82
83
    /**
84
     * @inheritdoc
@@ 110-117 (lines=8) @@
107
    /**
108
     * @inheritdoc
109
     */
110
    public function setPort($port)
111
    {
112
        try {
113
            return $this->delegate->setPort($port);
114
        } catch (\AMQPConnectionException $e) {
115
            throw new ConnectionException($e->getMessage(), $e->getCode(), $e);
116
        }
117
    }
118
119
    /**
120
     * @inheritdoc