Code Duplication    Length = 9-9 lines in 2 locations

src/Archangel.php 2 locations

@@ 121-129 (lines=9) @@
118
     *
119
     * @return object instantiated $this
120
     */
121
    public function setFrom($address, $title = '')
122
    {
123
        if (!empty($title)) {
124
            $address = sprintf('"%s" <%s>', $title, $address);
125
        }
126
        $this->headers['From'] = $address;
127
128
        return $this;
129
    }
130
131
    /**
132
     * Setter method for setting the single 'reply-to' field
@@ 139-147 (lines=9) @@
136
     *
137
     * @return object instantiated $this
138
     */
139
    public function setReplyTo($address, $title = '')
140
    {
141
        if (!empty($title)) {
142
            $address = sprintf('"%s" <%s>', $title, $address);
143
        }
144
        $this->headers['Reply-To'] = $address;
145
146
        return $this;
147
    }
148
149
    /**
150
     * Setter method for setting a subject