Code Duplication    Length = 9-9 lines in 2 locations

src/Archangel.php 2 locations

@@ 131-139 (lines=9) @@
128
     *
129
     * @return object instantiated $this
130
     */
131
    public function setFrom($address, $title = '')
132
    {
133
        if (!empty($title)) {
134
            $address = sprintf('"%s" <%s>', $title, $address);
135
        }
136
        $this->headers['From'] = $address;
137
138
        return $this;
139
    }
140
141
    /**
142
     * Setter method for setting the single 'reply-to' field
@@ 149-157 (lines=9) @@
146
     *
147
     * @return object instantiated $this
148
     */
149
    public function setReplyTo($address, $title = '')
150
    {
151
        if (!empty($title)) {
152
            $address = sprintf('"%s" <%s>', $title, $address);
153
        }
154
        $this->headers['Reply-To'] = $address;
155
156
        return $this;
157
    }
158
159
    /**
160
     * Setter method for setting a subject