Code Duplication    Length = 7-7 lines in 3 locations

src/Message.php 3 locations

@@ 170-176 (lines=7) @@
167
     *
168
     * @return MessageInterface
169
     */
170
    public function addCc($email, $name = null)
171
    {
172
        /** @var AddressList $header */
173
        $header = $this->getHeader('Cc', new AddressList('Cc'));
174
        $header->add(new AddressList\Address($email, $name));
175
        return $this;
176
    }
177
178
    /**
179
     * Add a "Bcc" address
@@ 186-192 (lines=7) @@
183
     *
184
     * @return MessageInterface
185
     */
186
    public function addBcc($email, $name = null)
187
    {
188
        /** @var AddressList $header */
189
        $header = $this->getHeader('Bcc', new AddressList('Bcc'));
190
        $header->add(new AddressList\Address($email, $name));
191
        return $this;
192
    }
193
194
    /**
195
     * Add one or more addresses to the Reply-To recipients
@@ 204-210 (lines=7) @@
201
     *
202
     * @return MessageInterface
203
     */
204
    public function addReplyTo($email, $name = null)
205
    {
206
        /** @var AddressList $header */
207
        $header = $this->getHeader('Reply-To', new AddressList('Reply-To'));
208
        $header->add(new AddressList\Address($email, $name));
209
        return $this;
210
    }
211
212
    /**
213
     * Set the message subject header value