Code Duplication    Length = 13-13 lines in 2 locations

src/Archangel.php 2 locations

@@ 102-114 (lines=13) @@
99
     *
100
     * @return object instantiated $this
101
     */
102
    public function addCC($address, $title = '')
103
    {
104
        if (!isset($this->headers['CC'])) {
105
            $this->headers['CC'] = array();
106
        }
107
108
        array_push(
109
            $this->headers['CC'],
110
            $this->formatEmailAddress($address, $title)
111
        );
112
113
        return $this;
114
    }
115
116
    /**
117
     * Setter method for adding bcc recipients
@@ 124-136 (lines=13) @@
121
     *
122
     * @return object instantiated $this
123
     */
124
    public function addBCC($address, $title = '')
125
    {
126
        if (!isset($this->headers['BCC'])) {
127
            $this->headers['BCC'] = array();
128
        }
129
130
        array_push(
131
            $this->headers['BCC'],
132
            $this->formatEmailAddress($address, $title)
133
        );
134
135
        return $this;
136
    }
137
138
    /**
139
     * Setter method for setting the single 'from' field